test(notifications): Update assertion to verify push channel notification call count

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-08 21:29:09 -07:00
parent a2f866b707
commit 03d34c26e8

View file

@ -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');