| 365 | // Mock Notification constructor - must be on globalThis since happy-dom |
| 366 | // aliases window = globalThis in our test setup |
| 367 | class MockNotification { |
| 368 | onclick: (() => void) | null = null; |
| 369 | constructor(title: string, options?: { body?: string }) { |
| 370 | notifications.push({ title, body: options?.body }); |
| 371 | } |
| 372 | close() {} |
| 373 | } |
| 374 | |
| 375 | const mockWithPermission = Object.assign(MockNotification, { |
| 376 | permission: "granted", |
nothing calls this directly
no outgoing calls
no test coverage detected