Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
slavaleleka committed Aug 29, 2023
1 parent 388dfc8 commit 0301ad2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/agtree/test/validator/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ describe('ModifierValidator', () => {
'permissions=storage-access=()\\, camera=()',
'redirect=noopjs',
'redirect=noopmp4-1s',
'redirect=googletagmanager-gtm',
'redirect-rule=noopjs',
'redirect-rule=noopmp4-1s',
'removeheader=link',
Expand All @@ -386,6 +387,8 @@ describe('ModifierValidator', () => {
'removeparam=/^__s=[A-Za-z0-9]{6\\,}/',
'replace=/("ad":{).+"(\\}\\,"(?:log|watermark)")/\\$1\\$2/',
'replace=/(<VAST[\\s\\S]*?>)[\\s\\S]*<\\/VAST>/\\$1<\\/VAST>/',
'replace=/\\,this\\.createAdDisplayContainer\\(\\)\\,this\\.setUpIMA\\(\\)//',
'replace=/fourthColumnWrapper//',
])('%s', (rawModifier) => {
const modifier = getModifier(rawModifier);
const validationResult = modifierValidator.validate(AdblockSyntax.Adg, modifier);
Expand Down

0 comments on commit 0301ad2

Please sign in to comment.