diff options
author | 2018-04-15 13:06:06 -0700 | |
---|---|---|
committer | 2018-04-15 13:06:06 -0700 | |
commit | 5368c9e22f9a6b427466e9422645d688953013c0 (patch) | |
tree | 96ce766691fb24ffc0382cac472945b2190ecabe /Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm | |
parent | 33b12f6c70729d56c6e6350d435559cec1c44c61 (diff) |
Replace the `SetOptions` object with a simple boolean. (#1098)
Instead of calling
`setData(["a": "b"], options: SetOptions.merge())`
call
`setData(["a": "b"], merge: true)`
Diffstat (limited to 'Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm')
-rw-r--r-- | Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm index b1d6738..3f2d64b 100644 --- a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm +++ b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm @@ -79,12 +79,7 @@ XCTestExpectation *batchExpectation = [self expectationWithDescription:@"batch written"]; FIRWriteBatch *batch = [doc.firestore batch]; [batch setData:@{ @"a" : @"b", @"nested" : @{@"a" : @"b"} } forDocument:doc]; - [batch setData:@{ - @"c" : @"d", - @"nested" : @{@"c" : @"d"} - } - forDocument:doc - options:[FIRSetOptions merge]]; + [batch setData:@{ @"c" : @"d", @"nested" : @{@"c" : @"d"} } forDocument:doc merge:YES]; [batch commitWithCompletion:^(NSError *error) { XCTAssertNil(error); [batchExpectation fulfill]; |