(policy: string, directive: string)
| 6 | } from '@/lib/security-headers'; |
| 7 | |
| 8 | function getPolicyDirective(policy: string, directive: string): string { |
| 9 | return policy.split('; ').find(entry => entry.startsWith(`${directive} `)) ?? ''; |
| 10 | } |
| 11 | |
| 12 | describe('security headers', () => { |
| 13 | it('builds CSP with required third-party sources', () => { |
no outgoing calls
no test coverage detected