Skip to content

Commit

Permalink
fix tvos test
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh62 committed Nov 17, 2023
1 parent 2e540c3 commit ed193e7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ class HostedUIASWebAuthenticationSessionTests: XCTestCase {
func testShowHostedUI_shouldThrowServiceError() async {
let session = HostedUIASWebAuthenticationSession()
do {
_ = try await session.showHostedUI()
_ = try await session.showHostedUI(
url: URL(string: "https://test.com")!,
callbackScheme: "https",
inPrivate: false,
presentationAnchor: nil)
} catch let error as HostedUIError {
if case .serviceMessage(let message) = error {
XCTAssertEqual(message, "HostedUI is only available in iOS and macOS")
Expand Down

0 comments on commit ed193e7

Please sign in to comment.