@@ -556,8 +556,9 @@ - (void)testQueriesFilteredByDocumentIdMustUseStringsOrDocumentReferences {
556
556
[collection queryWhereFieldPath: [FIRFieldPath documentID ] isEqualTo: @" foo/bar/baz" ], reason);
557
557
558
558
reason = @" Invalid query. When querying by document ID you must provide a valid string or "
559
- " DocumentReference, but it was of type: __NSCFNumber" ;
560
- FSTAssertThrows ([collection queryWhereFieldPath: [FIRFieldPath documentID ] isEqualTo: @1 ], reason);
559
+ " DocumentReference, but it was of type:" ;
560
+ FSTAssertExceptionPrefix ([collection queryWhereFieldPath: [FIRFieldPath documentID ] isEqualTo: @1 ],
561
+ reason);
561
562
562
563
reason = @" Invalid query. When querying a collection group by document ID, the value "
563
564
" provided must result in a valid document path, but 'foo/bar/baz' is not because it "
@@ -586,9 +587,10 @@ - (void)testQueriesUsingInAndDocumentIdMustHaveProperDocumentReferencesInArray {
586
587
reason);
587
588
588
589
reason = @" Invalid query. When querying by document ID you must provide a valid string or "
589
- " DocumentReference, but it was of type: __NSArrayI " ;
590
+ " DocumentReference, but it was of type:" ;
590
591
NSArray *value = @[ @1 , @2 ];
591
- FSTAssertThrows ([collection queryWhereFieldPath: [FIRFieldPath documentID ] in: value], reason);
592
+ FSTAssertExceptionPrefix ([collection queryWhereFieldPath: [FIRFieldPath documentID ] in: value],
593
+ reason);
592
594
593
595
reason = @" Invalid query. When querying a collection group by document ID, the value "
594
596
" provided must result in a valid document path, but 'foo' is not because it "
0 commit comments