diff --git a/packages/web-push/test/push.test.ts b/packages/web-push/test/push.test.ts index db6199c..4d24b72 100644 --- a/packages/web-push/test/push.test.ts +++ b/packages/web-push/test/push.test.ts @@ -2,7 +2,7 @@ import { describe, expect, test } from 'vitest'; import { buildPushPayload, type PushMessage } from '../lib/main.js'; import { fakeSubscriptions, fakeVapid } from './fixtures.js'; -describe('Payload', () => { +describe('Payload Integration', () => { test('Fake Chrome Subscription', async () => { const message: PushMessage = { data: 'Some text', @@ -30,7 +30,7 @@ describe('Payload', () => { data: 'Some text', options: { ttl: 60, - // Topics are strings that can be used to replace a pending messages with + // Topics are strings that can be used to replace pending messages with // a new message if they have matching topic names topic: 'from-test-env', urgency: 'high', @@ -45,5 +45,9 @@ describe('Payload', () => { await expect(res.text()).resolves.toMatchInlineSnapshot('""'); expect(res.statusText).toMatchInlineSnapshot('"Created"'); expect(res.status).toMatchInlineSnapshot('201'); + + // seemingly Edge specific headers, static so we can check them here + expect(res.headers.get('x-wns-notificationstatus')).toBe('received'); + expect(res.headers.get('x-wns-status')).toBe('received'); }); });