Skip to content

Commit 3be5e79

Browse files
committed
another test that the console usage will perform runtime validation of user data
1 parent 5ccddc9 commit 3be5e79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/firestore/test/integration/api/pipeline.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,17 @@ const timestampDeltaMS = 1000;
360360
expectedStructuredPipelineProto
361361
);
362362
});
363+
364+
it('performs validation', async () => {
365+
expect(() => {
366+
const pipeline = firestore
367+
.pipeline()
368+
.collection('customers')
369+
.where(field('country').equal(new Map([])));
370+
371+
_internalPipelineToExecutePipelineRequestProto(pipeline);
372+
}).to.throw();
373+
});
363374
});
364375

365376
describe('pipeline results', () => {

0 commit comments

Comments
 (0)