From ef7e39b8215c8f820bba25fc73379280ff067c6f Mon Sep 17 00:00:00 2001 From: Tyler-Larkin Date: Fri, 21 Feb 2025 17:04:46 -0800 Subject: [PATCH] chore(): updated fetchAuthSession Unit Test --- .../example/ios/unit_tests/NativeAuthPluginTests.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift b/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift index 31e4254312..87fb2fc276 100644 --- a/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift +++ b/packages/amplify_datastore/example/ios/unit_tests/NativeAuthPluginTests.swift @@ -30,7 +30,7 @@ class MockBinaryMessenger: NSObject, FlutterBinaryMessenger { identityId: nil, awsCredentials: nil ) - let encodedAuthSession = codec.encode(authSession) + let encodedAuthSession = codec.encode([authSession]) callback?(encodedAuthSession) } @@ -56,23 +56,18 @@ class NativeAuthPluginTests: XCTestCase { switch result { case .success(let session): XCTAssertEqual(session.isSignedIn, isSignedIn) - break case .failure(let error): - print("fetchAuthSession failed with error: \(error)") XCTFail("fetchAuthSession failed with error: \(error)") - break } } waitForExpectations(timeout: 1) } func testFetchAuthSessionSignedIn() { - print("testFetchAuthSessionSignedIn") fetchAuthSession(isSignedIn: true) } func testFetchAuthSessionSignedOut() { - print("testFetchAuthSessionSignedOut") fetchAuthSession(isSignedIn: false) }