Skip to content

Commit

Permalink
Merge branch '1242-to-main-2' of https://github.com/googleapis/nodejs…
Browse files Browse the repository at this point in the history
…-datastore into 1242-to-main-2
  • Loading branch information
gcf-owl-bot[bot] committed Aug 28, 2024
2 parents fa51ea0 + d3540b3 commit 39562f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,17 @@ describe('Query', () => {
assert.strictEqual(filter.val, 'Stephen');
});
});
it('should not issue a warning when an EntityFilter instance is provided', done => {
const onWarning = () => {
assert.fail();
};
process.on('warning', onWarning);
new Query(['kind1']).filter(new PropertyFilter('name', '=', 'Stephen'));
setImmediate(() => {
process.removeListener('warning', onWarning);
done();
});
});
describe('filter with Filter class', () => {
it('should support filter with Filter', () => {
const now = new Date();
Expand Down

0 comments on commit 39562f7

Please sign in to comment.