Skip to content

Commit e7d3237

Browse files
committed
test fix
1 parent 7dc8bbc commit e7d3237

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ConfigurationTests/AuthFlowTypeTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class AuthFlowTypeTests: XCTestCase {
4949
XCTAssertEqual(String(data: userPassword, encoding: .utf8), "{\"type\":\"USER_PASSWORD_AUTH\"}")
5050

5151
let userAuth = try encoder.encode(AuthFlowType.userAuth(preferredFirstFactor: nil))
52-
XCTAssertEqual(String(data: userAuth, encoding: .utf8), "{\"preferredFirstFactor\":null,\"type\":\"USER_AUTH\"}")
52+
XCTAssertTrue(String(data: userAuth, encoding: .utf8)?.contains("\"preferredFirstFactor\":null"))
53+
XCTAssertTrue(String(data: userAuth, encoding: .utf8)?.contains("\"type\":\"USER_AUTH\""))
5354
}
5455

5556
func testDecoding() throws {

0 commit comments

Comments
 (0)