Skip to content

Commit 4f03334

Browse files
committed
test: fix tests
1 parent bd250e7 commit 4f03334

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/modules/security-headers.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('security headers module', () => {
7777
const csp = getCsp(nuxt)
7878

7979
expect(csp).toContain('ws://localhost:*')
80-
expect(csp).toContain("frame-src https://bsky.app https://pdsmoover.com 'self'")
80+
expect(csp).toContain("frame-src https://bsky.app https://pdsmoover.com https://www.youtube-nocookie.com/ 'self'")
8181
expect(nuxt.options.routeRules['/**']?.headers).toEqual(
8282
expect.objectContaining({
8383
'Permissions-Policy': 'camera=()',
@@ -110,7 +110,7 @@ describe('security headers module', () => {
110110
const csp = getCsp(nuxt)
111111

112112
expect(csp).not.toContain('ws://localhost:*')
113-
expect(csp).not.toContain("frame-src https://bsky.app https://pdsmoover.com 'self'")
113+
expect(csp).not.toContain("frame-src https://bsky.app https://pdsmoover.com https://www.youtube-nocookie.com/ 'self'")
114114
expect(nuxt.options.routeRules['/__nuxt_devtools__/**']).toBeUndefined()
115115
})
116116
})

0 commit comments

Comments
 (0)