aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-04-14 17:19:06 -0700
committerGravatar GitHub <noreply@github.com>2018-04-14 17:19:06 -0700
commit33b12f6c70729d56c6e6350d435559cec1c44c61 (patch)
tree60d916bb7509f82e8950b887b45f9dd0bf80251a /Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
parentfd84cd60aaf52cbe405ff8248665029827d56e97 (diff)
Replace `DocumentListenOptions` with a simple boolean. (#1099)
* Replace `DocumentListenOptions` with a simple boolean. Instead of calling `addSnapshotListener(options: DocumentListenOptions.includeMetadataChanges(true))` call `addSnapshotListener(includeMetadataChanges:true)` * Style
Diffstat (limited to 'Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm')
-rw-r--r--Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
index 9a2fef1..b1d6738 100644
--- a/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
+++ b/Firestore/Example/Tests/Integration/API/FIRWriteBatchTests.mm
@@ -248,9 +248,7 @@
- (void)testCanWriteTheSameDocumentMultipleTimes {
FIRDocumentReference *doc = [self documentRef];
FSTEventAccumulator *accumulator = [FSTEventAccumulator accumulatorForTest:self];
- [doc
- addSnapshotListenerWithOptions:[[FIRDocumentListenOptions options] includeMetadataChanges:YES]
- listener:accumulator.valueEventHandler];
+ [doc addSnapshotListenerWithIncludeMetadataChanges:YES listener:accumulator.valueEventHandler];
FIRDocumentSnapshot *initialSnap = [accumulator awaitEventWithName:@"initial event"];
XCTAssertFalse(initialSnap.exists);