(endpoint: string)
| 35 | } |
| 36 | |
| 37 | function makeSubscription(endpoint: string): ISubscriptionMock { |
| 38 | return { |
| 39 | endpoint, |
| 40 | expirationTime: null, |
| 41 | toJSON: () => ({ |
| 42 | endpoint, |
| 43 | keys: { p256dh: "p256dh-key", auth: "auth-key" } |
| 44 | }), |
| 45 | unsubscribe: vi.fn().mockResolvedValue(true) |
| 46 | }; |
| 47 | } |
| 48 | |
| 49 | interface ISetupOptions { |
| 50 | permission?: NotificationPermission; |
no outgoing calls
no test coverage detected