Skip to content
Myr

chore(secure-headers): format (#4224)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent 752449b · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:src/middleware/secure-headers/index.test.ts+2 added-2 removed
471 unmodified lines
472 })473474 const res = await app.request('/test')475 const csp = res.headers.get(cspHeaderName)476 expect(csp).toMatch(`script-src 'self' 'nonce-scriptSrc'`)477 expect(csp).toMatch(`style-src 'self' 'nonce-styleSrc'`)476 expect(csp).toMatch("script-src 'self' 'nonce-scriptSrc'")477 expect(csp).toMatch("style-src 'self' 'nonce-styleSrc'")478 expect(await res.text()).toEqual('script: scriptSrc, style: styleSrc')479 })480 })481})