Skip to content

Commit d4b33b8

Browse files
committed
Update spec tests and fix parsing of "userListen" entries
1 parent 0e247b0 commit d4b33b8

16 files changed

+5279
-3433
lines changed

Firestore/Example/Tests/SpecTests/FSTSpecTests.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ - (DocumentViewChange)parseChange:(NSDictionary *)jsonDoc ofType:(DocumentViewCh
327327

328328
#pragma mark - Methods for doing the steps of the spec test.
329329

330-
- (void)doListen:(NSArray *)listenSpec {
331-
Query query = [self parseQuery:listenSpec[1]];
330+
- (void)doListen:(NSDictionary *)listenSpec {
331+
Query query = [self parseQuery:listenSpec[@"query"]];
332332
TargetId actualID = [self.driver addUserListenerWithQuery:std::move(query)];
333333

334-
TargetId expectedID = [listenSpec[0] intValue];
334+
TargetId expectedID = [listenSpec[@"targetId"] intValue];
335335
XCTAssertEqual(actualID, expectedID, @"targetID assigned to listen");
336336
}
337337

0 commit comments

Comments
 (0)