@@ -379,7 +379,7 @@ - (void)testCannotSpecifyFieldMaskForMissingField {
379
379
FIRDocumentReference *doc = [[self .db collectionWithPath: @" rooms" ] documentWithAutoID ];
380
380
381
381
XCTAssertThrowsSpecific (
382
- { [doc setData: @{} mergeFields: @[ @" foo" ]]; } , NSException ,
382
+ [doc setData: @{} mergeFields: @[ @" foo" ]], NSException ,
383
383
@" Field 'foo' is specified in your field mask but missing from your input data." );
384
384
}
385
385
@@ -1280,12 +1280,9 @@ - (void)testClientCallsAfterTerminationFail {
1280
1280
[firestore terminateWithCompletion: [self completionForExpectationWithName: @" Terminate" ]];
1281
1281
[self awaitExpectations ];
1282
1282
1283
- XCTAssertThrowsSpecific (
1284
- {
1285
- [firestore disableNetworkWithCompletion: ^(NSError *){
1286
- }];
1287
- },
1288
- NSException , @" The client has already been terminated." );
1283
+ XCTAssertThrowsSpecific ([firestore disableNetworkWithCompletion: ^(NSError *){
1284
+ }],
1285
+ NSException , @" The client has already been terminated." );
1289
1286
}
1290
1287
1291
1288
- (void )testMaintainsPersistenceAfterRestarting {
@@ -1467,21 +1464,15 @@ - (void)testTerminateCanBeCalledMultipleTimes {
1467
1464
1468
1465
[firestore terminateWithCompletion: [self completionForExpectationWithName: @" Terminate1" ]];
1469
1466
[self awaitExpectations ];
1470
- XCTAssertThrowsSpecific (
1471
- {
1472
- [firestore disableNetworkWithCompletion: ^(NSError *){
1473
- }];
1474
- },
1475
- NSException , @" The client has already been terminated." );
1467
+ XCTAssertThrowsSpecific ([firestore disableNetworkWithCompletion: ^(NSError *){
1468
+ }],
1469
+ NSException , @" The client has already been terminated." );
1476
1470
1477
1471
[firestore terminateWithCompletion: [self completionForExpectationWithName: @" Terminate2" ]];
1478
1472
[self awaitExpectations ];
1479
- XCTAssertThrowsSpecific (
1480
- {
1481
- [firestore enableNetworkWithCompletion: ^(NSError *){
1482
- }];
1483
- },
1484
- NSException , @" The client has already been terminated." );
1473
+ XCTAssertThrowsSpecific ([firestore enableNetworkWithCompletion: ^(NSError *){
1474
+ }],
1475
+ NSException , @" The client has already been terminated." );
1485
1476
}
1486
1477
1487
1478
- (void )testCanRemoveListenerAfterTermination {
0 commit comments