File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,6 @@ class Query {
218
218
this . newFilters . push ( propertyOrFilter ) ;
219
219
return this ;
220
220
} else {
221
- process . emitWarning (
222
- 'Providing Filter objects is recommended when using .filter'
223
- ) ;
224
221
let operator = operatorOrValue as Operator ;
225
222
if ( arguments . length === 2 ) {
226
223
value = operatorOrValue as { } ;
Original file line number Diff line number Diff line change @@ -770,12 +770,10 @@ describe('entity', () => {
770
770
"' property is outside of bounds of a JavaScript Number.\n" +
771
771
"Use 'Datastore.int(<integer_value_as_string>)' to preserve accuracy during the upload." ;
772
772
773
- const onWarning = ( warning : { message : unknown } ) => {
773
+ process . on ( ' warning' , warning => {
774
774
assert . strictEqual ( warning . message , expectedWarning ) ;
775
- process . removeListener ( 'warning' , onWarning ) ;
776
775
done ( ) ;
777
- } ;
778
- process . on ( 'warning' , onWarning ) ;
776
+ } ) ;
779
777
entity . encodeValue ( largeIntValue , property ) ;
780
778
} ) ;
781
779
You can’t perform that action at this time.
0 commit comments