Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Apr 23, 2024
1 parent 03697fc commit 91c2a69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/agtree/test/validator/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,14 @@ describe('ModifierValidator', () => {
"csp=script-src 'self' * 'sha256-0McqMM16/wAVZmxF6zXpjNsb1UM6Tl4LXBxdhqPKxws='",
// few directives
"csp=child-src 'none'; frame-src 'self' *; worker-src 'none'",
'csp=fenced-frame-src https://example.com/',
'csp=referrer "none"',
"csp=require-trusted-types-for 'script'",
"csp=script-src-attr 'none'",
'csp=script-src-elem https://example.com/',
"csp=style-src-attr 'none'",
'csp=style-src-elem https://example.com/',
"csp=trusted-types foo bar 'allow-duplicates'",
])('%s', (rawModifier) => {
const modifier = getModifier(rawModifier);
const validationResult = modifierValidator.validate(AdblockSyntax.Adg, modifier, true);
Expand Down

0 comments on commit 91c2a69

Please sign in to comment.