We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 077115d commit 72eeafbCopy full SHA for 72eeafb
1 file changed
workers/notifier/tests/worker.test.ts
@@ -242,7 +242,10 @@ describe('NotifierWorker', () => {
242
243
await worker.handle(message);
244
245
- expect(dbQueryMock).toBeCalledWith({ _id: new ObjectID(message.projectId) });
+ expect(dbQueryMock).toBeCalledWith(
246
+ { _id: new ObjectID(message.projectId) },
247
+ { projection: { notifications: 1 } }
248
+ );
249
});
250
251
it('should close db connection on finish', async () => {
0 commit comments