Skip to content

Commit

Permalink
chore(): updated fetchAuthSession Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyllark committed Feb 20, 2025
1 parent 87fcae1 commit 897c0dc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class NativeAuthPluginTests: XCTestCase {
let nativePlugin = NativeAuthPlugin(binaryMessenger: binaryMessenger)
let expectation = expectation(description: "fetchAuthSession completes")
nativePlugin.fetchAuthSession { result in
defer { expectation.fulfill() }
switch result {
case .success(let session):
defer { expectation.fulfill() }
XCTAssertEqual(session.isSignedIn, isSignedIn)
case .failure(let error):
XCTFail("fetchAuthSession failed with error: \(error)")
case .success(let session):
XCTAssertEqual(session.isSignedIn, isSignedIn)
case .failure(let error):
XCTFail("fetchAuthSession failed with error: \(error)")
}
}
waitForExpectations(timeout: 1)
Expand Down

0 comments on commit 897c0dc

Please sign in to comment.