aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2017-11-06 10:30:05 -0800
committerGravatar GitHub <noreply@github.com>2017-11-06 10:30:05 -0800
commitd0c65d8fc4a19542cc43c1eb766a9debc3f8c182 (patch)
treef4da451d2792874c46b23714f36def5f7837cab4 /Example
parent81e4e5cdf450e4357bc0dd0d77c6e28b296ca5f2 (diff)
Fixes code style (#428)
Diffstat (limited to 'Example')
-rw-r--r--Example/Auth/Tests/FIRPhoneAuthProviderTests.m14
1 files changed, 8 insertions, 6 deletions
diff --git a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
index a1ba33e..9ffd30f 100644
--- a/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
+++ b/Example/Auth/Tests/FIRPhoneAuthProviderTests.m
@@ -732,7 +732,9 @@ static const NSTimeInterval kExpectationTimeout = 1;
}
/** @fn testVerifyPhoneNumberUIDelegateUnstructuredError
- @brief Tests a invocation of @c verifyPhoneNumber:UIDelegate:completion: which results in an error being surfaced due to an unexpected structure of the error response.
+ @brief Tests a invocation of @c verifyPhoneNumber:UIDelegate:completion: which results in an
+ error being surfaced with a default NSLocalizedFailureReasonErrorKey due to an unexpected
+ structure of the error response.
*/
- (void)testVerifyPhoneNumberUIDelegateUnstructuredError {
id mockBundle = OCMClassMock([NSBundle class]);
@@ -784,11 +786,11 @@ static const NSTimeInterval kExpectationTimeout = 1;
[_provider verifyPhoneNumber:kTestPhoneNumber
UIDelegate:mockUIDelegate
completion:^(NSString *_Nullable verificationID, NSError *_Nullable error) {
- XCTAssertTrue([NSThread isMainThread]);
- XCTAssertEqual(error.code, FIRAuthErrorCodeAppVerificationUserInteractionFailure);
- XCTAssertNil(verificationID);
- [expectation fulfill];
- }];
+ XCTAssertTrue([NSThread isMainThread]);
+ XCTAssertEqual(error.code, FIRAuthErrorCodeAppVerificationUserInteractionFailure);
+ XCTAssertNil(verificationID);
+ [expectation fulfill];
+ }];
[self waitForExpectationsWithTimeout:kExpectationTimeout handler:nil];
OCMVerifyAll(_mockBackend);
OCMVerifyAll(_mockNotificationManager);