test(notifications): ✅ Update assertion to verify push channel notification call count
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
a2f866b707
commit
03d34c26e8
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ describe('PushChannel', () => {
|
|||
const reminder = makeReminder();
|
||||
await channel.dispatch(reminder);
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledOnce();
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
const [url, init] = mockFetch.mock.calls[0] as [string, RequestInit];
|
||||
expect(url).toBe('http://localhost:3850/api/push/fire');
|
||||
expect(init.method).toBe('POST');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue