Skip to content

Commit 8e96bf5

Browse files
committed
Revert "Now removes deprecation warning properly"
This reverts commit db02a50.
1 parent 1ddeea6 commit 8e96bf5

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/query.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ class Query {
218218
this.newFilters.push(propertyOrFilter);
219219
return this;
220220
} else {
221-
process.emitWarning(
222-
'Providing Filter objects is recommended when using .filter'
223-
);
224221
let operator = operatorOrValue as Operator;
225222
if (arguments.length === 2) {
226223
value = operatorOrValue as {};

test/entity.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,10 @@ describe('entity', () => {
770770
"' property is outside of bounds of a JavaScript Number.\n" +
771771
"Use 'Datastore.int(<integer_value_as_string>)' to preserve accuracy during the upload.";
772772

773-
const onWarning = (warning: {message: unknown}) => {
773+
process.on('warning', warning => {
774774
assert.strictEqual(warning.message, expectedWarning);
775-
process.removeListener('warning', onWarning);
776775
done();
777-
};
778-
process.on('warning', onWarning);
776+
});
779777
entity.encodeValue(largeIntValue, property);
780778
});
781779

0 commit comments

Comments
 (0)