Skip to content

Commit 612cad0

Browse files
committed
lint fixes
1 parent 704b83c commit 612cad0

File tree

2 files changed

+1
-42
lines changed

2 files changed

+1
-42
lines changed

FirebaseAuth/Tests/Unit/FinalizePasskeyEnrollmentRequestTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
requestConfiguration: configWithTenant
108108
)
109109
let body = request.unencodedHTTPRequestBody
110-
XCTAssertEqual(body?["tenantId"] as? String, "TENANT_ID")
110+
XCTAssertEqual(body?["tenantId"] as? String, "TEST_TENANT")
111111
}
112112
}
113113

FirebaseAuth/Tests/Unit/UserTests.swift

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,46 +1997,5 @@ class UserTests: RPCBaseTests {
19971997
}
19981998
await fulfillment(of: [expectation], timeout: 5)
19991999
}
2000-
2001-
func testFinalizePasskeyEnrollmentSuccess() throws {
2002-
setFakeGetAccountProvider()
2003-
let expectation = expectation(description: #function)
2004-
signInWithEmailPasswordReturnFakeUser { user in
2005-
// Mock finalize backend
2006-
self.rpcIssuer.respondBlock = {
2007-
try self.rpcIssuer.respond(
2008-
withJSON: [
2009-
"idToken": RPCBaseTests.kFakeAccessToken,
2010-
"refreshToken": self.kRefreshToken,
2011-
]
2012-
)
2013-
}
2014-
let credential = ASAuthorizationPlatformPublicKeyCredentialRegistration
2015-
user.finalizePasskeyEnrollment(withPlatformCredential: credential) { error in
2016-
XCTAssertTrue(Thread.isMainThread)
2017-
XCTAssertNil(error)
2018-
expectation.fulfill()
2019-
}
2020-
}
2021-
waitForExpectations(timeout: 5)
2022-
}
2023-
2024-
func testFinalizePasskeyEnrollmentFailure() throws {
2025-
setFakeGetAccountProvider()
2026-
let expectation = expectation(description: #function)
2027-
signInWithEmailPasswordReturnFakeUser { user in
2028-
self.rpcIssuer.respondBlock = {
2029-
try self.rpcIssuer.respond(serverErrorMessage: "OPERATION_NOT_ALLOWED")
2030-
}
2031-
let credential = ASAuthorizationPlatformPublicKeyCredentialRegistration
2032-
user.finalizePasskeyEnrollment(withPlatformCredential: credential) { error in
2033-
XCTAssertTrue(Thread.isMainThread)
2034-
let nsError = try! XCTUnwrap(error as NSError?)
2035-
XCTAssertEqual(nsError.code, AuthErrorCode.operationNotAllowed.rawValue)
2036-
expectation.fulfill()
2037-
}
2038-
}
2039-
waitForExpectations(timeout: 5)
2040-
}
20412000
}
20422001
#endif

0 commit comments

Comments
 (0)