Skip to content

Commit

Permalink
test(notifier-worker): improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Jan 3, 2025
1 parent 0148a15 commit 302adcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workers/notifier/tests/worker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,11 @@ describe('NotifierWorker', () => {
worker.sendToSenderWorker = jest.fn();

const message = { ...messageMock };
message.event.isNew = true;

await worker.handle(message);

expect(worker.sendToSenderWorker).toBeCalled();
expect(worker.sendToSenderWorker).toBeCalledTimes(1);
});

it('should send task if event threshold reached', async () => {
Expand Down

0 comments on commit 302adcf

Please sign in to comment.