@@ -25,8 +25,6 @@ import { EventsAccumulator } from '../util/events_accumulator';
25
25
import * as firebaseExport from '../util/firebase_export' ;
26
26
import {
27
27
apiDescribe ,
28
- notEqualOp ,
29
- notInOp ,
30
28
withTestCollection ,
31
29
withTestDb ,
32
30
withTestDbs ,
@@ -644,14 +642,6 @@ apiDescribe('Database', (persistence: boolean) => {
644
642
} ) ;
645
643
} ) ;
646
644
647
- it ( 'inequality and NOT_IN on different fields works' , ( ) => {
648
- return withTestCollection ( persistence , { } , async coll => {
649
- expect ( ( ) =>
650
- coll . where ( 'x' , '>=' , 32 ) . where ( 'y' , notInOp , [ 1 , 2 ] )
651
- ) . not . to . throw ( ) ;
652
- } ) ;
653
- } ) ;
654
-
655
645
it ( 'inequality and array-contains-any on different fields works' , ( ) => {
656
646
return withTestCollection ( persistence , { } , async coll => {
657
647
expect ( ( ) =>
@@ -669,12 +659,8 @@ apiDescribe('Database', (persistence: boolean) => {
669
659
670
660
it ( '!= same as orderBy works.' , ( ) => {
671
661
return withTestCollection ( persistence , { } , async coll => {
672
- expect ( ( ) =>
673
- coll . where ( 'x' , notEqualOp , 32 ) . orderBy ( 'x' )
674
- ) . not . to . throw ( ) ;
675
- expect ( ( ) =>
676
- coll . orderBy ( 'x' ) . where ( 'x' , notEqualOp , 32 )
677
- ) . not . to . throw ( ) ;
662
+ expect ( ( ) => coll . where ( 'x' , '!=' , 32 ) . orderBy ( 'x' ) ) . not . to . throw ( ) ;
663
+ expect ( ( ) => coll . orderBy ( 'x' ) . where ( 'x' , '!=' , 32 ) ) . not . to . throw ( ) ;
678
664
} ) ;
679
665
} ) ;
680
666
@@ -692,10 +678,10 @@ apiDescribe('Database', (persistence: boolean) => {
692
678
it ( '!= same as first orderBy works.' , ( ) => {
693
679
return withTestCollection ( persistence , { } , async coll => {
694
680
expect ( ( ) =>
695
- coll . where ( 'x' , notEqualOp , 32 ) . orderBy ( 'x' ) . orderBy ( 'y' )
681
+ coll . where ( 'x' , '!=' , 32 ) . orderBy ( 'x' ) . orderBy ( 'y' )
696
682
) . not . to . throw ( ) ;
697
683
expect ( ( ) =>
698
- coll . orderBy ( 'x' ) . where ( 'x' , notEqualOp , 32 ) . orderBy ( 'y' )
684
+ coll . orderBy ( 'x' ) . where ( 'x' , '!=' , 32 ) . orderBy ( 'y' )
699
685
) . not . to . throw ( ) ;
700
686
} ) ;
701
687
} ) ;
@@ -720,14 +706,6 @@ apiDescribe('Database', (persistence: boolean) => {
720
706
} ) ;
721
707
} ) ;
722
708
723
- it ( 'NOT_IN different than orderBy works' , ( ) => {
724
- return withTestCollection ( persistence , { } , async coll => {
725
- expect ( ( ) =>
726
- coll . orderBy ( 'x' ) . where ( 'y' , notInOp , [ 1 , 2 ] )
727
- ) . not . to . throw ( ) ;
728
- } ) ;
729
- } ) ;
730
-
731
709
it ( 'array-contains-any different than orderBy works' , ( ) => {
732
710
return withTestCollection ( persistence , { } , async coll => {
733
711
expect ( ( ) =>
0 commit comments