@@ -815,10 +815,10 @@ apiDescribe('Validation:', (persistence: boolean) => {
815
815
db => {
816
816
const collection = db . collection ( 'test' ) ;
817
817
expect ( ( ) => collection . where ( 'a' , '>' , null ) ) . to . throw (
818
- 'Invalid query. You can only perform equals comparisons on null .'
818
+ 'Invalid query. Null supports only equality comparisons.'
819
819
) ;
820
820
expect ( ( ) => collection . where ( 'a' , 'array-contains' , null ) ) . to . throw (
821
- 'Invalid query. You can only perform equals comparisons on null .'
821
+ 'Invalid query. Null supports only equality comparisons.'
822
822
) ;
823
823
expect ( ( ) => collection . where ( 'a' , inOp , null ) ) . to . throw (
824
824
"Invalid Query. A non-empty array is required for 'in' filters."
@@ -828,13 +828,11 @@ apiDescribe('Validation:', (persistence: boolean) => {
828
828
) ;
829
829
830
830
expect ( ( ) => collection . where ( 'a' , '>' , Number . NaN ) ) . to . throw (
831
- 'Invalid query. You can only perform equals comparisons on NaN .'
831
+ 'Invalid query. NaN supports only equality comparisons.'
832
832
) ;
833
833
expect ( ( ) =>
834
834
collection . where ( 'a' , 'array-contains' , Number . NaN )
835
- ) . to . throw (
836
- 'Invalid query. You can only perform equals comparisons on NaN.'
837
- ) ;
835
+ ) . to . throw ( 'Invalid query. NaN supports only equality comparisons.' ) ;
838
836
expect ( ( ) => collection . where ( 'a' , inOp , Number . NaN ) ) . to . throw (
839
837
"Invalid Query. A non-empty array is required for 'in' filters."
840
838
) ;
0 commit comments