@@ -706,8 +706,11 @@ apiDescribe('Queries', (persistence: boolean) => {
706
706
707
707
await withTestCollection ( persistence , testDocs , async coll => {
708
708
let expected = { ...testDocs } ;
709
+ // @ts -expect-error
709
710
delete expected . a ;
711
+ // @ts -expect-error
710
712
delete expected . h ;
713
+ // @ts -expect-error
711
714
delete expected . i ;
712
715
const snapshot = await coll . where ( 'zip' , notEqualOp , 98101 ) . get ( ) ;
713
716
expect ( toDataArray ( snapshot ) ) . to . have . deep . members (
@@ -719,8 +722,11 @@ apiDescribe('Queries', (persistence: boolean) => {
719
722
. where ( 'zip' , notEqualOp , { code : 500 } )
720
723
. get ( ) ;
721
724
expected = { ...testDocs } ;
725
+ // @ts -expect-error
722
726
delete expected . f ;
727
+ // @ts -expect-error
723
728
delete expected . h ;
729
+ // @ts -expect-error
724
730
delete expected . i ;
725
731
expect ( toDataArray ( snapshot2 ) ) . to . have . deep . members (
726
732
Object . values ( expected )
@@ -729,7 +735,9 @@ apiDescribe('Queries', (persistence: boolean) => {
729
735
// With null.
730
736
const snapshot3 = await coll . where ( 'zip' , notEqualOp , null ) . get ( ) ;
731
737
expected = { ...testDocs } ;
738
+ // @ts -expect-error
732
739
delete expected . h ;
740
+ // @ts -expect-error
733
741
delete expected . i ;
734
742
expect ( toDataArray ( snapshot3 ) ) . to . have . deep . members (
735
743
Object . values ( expected )
@@ -738,8 +746,11 @@ apiDescribe('Queries', (persistence: boolean) => {
738
746
// With NaN.
739
747
const snapshot4 = await coll . where ( 'zip' , notEqualOp , Number . NaN ) . get ( ) ;
740
748
expected = { ...testDocs } ;
749
+ // @ts -expect-error
741
750
delete expected . h ;
751
+ // @ts -expect-error
742
752
delete expected . i ;
753
+ // @ts -expect-error
743
754
delete expected . j ;
744
755
expect ( toDataArray ( snapshot4 ) ) . to . have . deep . members (
745
756
Object . values ( expected )
@@ -859,9 +870,13 @@ apiDescribe('Queries', (persistence: boolean) => {
859
870
860
871
await withTestCollection ( persistence , testDocs , async coll => {
861
872
let expected = { ...testDocs } ;
873
+ // @ts -expect-error
862
874
delete expected . a ;
875
+ // @ts -expect-error
863
876
delete expected . c ;
877
+ // @ts -expect-error
864
878
delete expected . g ;
879
+ // @ts -expect-error
865
880
delete expected . h ;
866
881
const snapshot = await coll
867
882
. where ( 'zip' , notInOp , [ 98101 , 98103 , [ 98101 , 98102 ] ] )
@@ -873,7 +888,9 @@ apiDescribe('Queries', (persistence: boolean) => {
873
888
. where ( 'zip' , notInOp , [ { code : 500 } ] )
874
889
. get ( ) ;
875
890
expected = { ...testDocs } ;
891
+ // @ts -expect-error
876
892
delete expected . f ;
893
+ // @ts -expect-error
877
894
delete expected . h ;
878
895
expect ( toDataArray ( snapshot2 ) ) . to . deep . equal ( Object . values ( expected ) ) ;
879
896
@@ -884,7 +901,9 @@ apiDescribe('Queries', (persistence: boolean) => {
884
901
// With NaN.
885
902
const snapshot4 = await coll . where ( 'zip' , notInOp , [ Number . NaN ] ) . get ( ) ;
886
903
expected = { ...testDocs } ;
904
+ // @ts -expect-error
887
905
delete expected . h ;
906
+ // @ts -expect-error
888
907
delete expected . j ;
889
908
expect ( toDataArray ( snapshot4 ) ) . to . deep . equal ( Object . values ( expected ) ) ;
890
909
@@ -893,8 +912,11 @@ apiDescribe('Queries', (persistence: boolean) => {
893
912
. where ( 'zip' , notInOp , [ Number . NaN , 98101 ] )
894
913
. get ( ) ;
895
914
expected = { ...testDocs } ;
915
+ // @ts -expect-error
896
916
delete expected . a ;
917
+ // @ts -expect-error
897
918
delete expected . h ;
919
+ // @ts -expect-error
898
920
delete expected . j ;
899
921
expect ( toDataArray ( snapshot5 ) ) . to . deep . equal ( Object . values ( expected ) ) ;
900
922
} ) ;
0 commit comments