test(push): relax flaky call count
Some checks failed
Build & Push Docker Image / test (push) Failing after 10s
Build & Push Docker Image / build-and-push (push) Has been skipped

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-11 23:25:53 +02:00
parent 3a72bb815f
commit 34196b8110

View File

@@ -138,6 +138,15 @@ describe('sendNotification', () => {
.mockResolvedValueOnce({});
await sendNotification('job-8', 'title', 'body');
expect(mockWebPushSend).toHaveBeenCalledTimes(3);
const calledEndpoints = mockWebPushSend.mock.calls.map(
([sub]) => (sub as { endpoint: string }).endpoint
);
expect(calledEndpoints).toEqual(
expect.arrayContaining([
'https://fcm.example.com/push/ok1',
'https://fcm.example.com/push/fail',
'https://fcm.example.com/push/ok2'
])
);
});
});