-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
content-scripts-register-polyfill
(#55)
- Loading branch information
Showing
9 changed files
with
408 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
// Vitest Snapshot v1 | ||
|
||
exports[`excludeDuplicateFiles > safe > it should drop the whole block if if empty 1`] = ` | ||
[ | ||
{ | ||
"css": [ | ||
"first.css", | ||
], | ||
"js": [ | ||
"alpha.js", | ||
], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > safe > it should remove duplicate scripts 1`] = ` | ||
[ | ||
{ | ||
"css": [], | ||
"js": [ | ||
"first.js", | ||
], | ||
}, | ||
{ | ||
"css": [], | ||
"js": [ | ||
"second.js", | ||
], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > safe > it should remove duplicate scripts and stylesheets 1`] = ` | ||
[ | ||
{ | ||
"css": [ | ||
"first.css", | ||
], | ||
"js": [ | ||
"alpha.js", | ||
], | ||
}, | ||
{ | ||
"css": [ | ||
"second.css", | ||
], | ||
"js": [], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > safe > it should remove duplicate stylesheets 1`] = ` | ||
[ | ||
{ | ||
"css": [ | ||
"first.css", | ||
], | ||
"js": [], | ||
}, | ||
{ | ||
"css": [ | ||
"second.css", | ||
], | ||
"js": [], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning > it should not warn when a differentiator is the same 1`] = ` | ||
[ | ||
{ | ||
"css": [], | ||
"exclude_matches": [ | ||
"https://*/admin/*", | ||
], | ||
"js": [ | ||
"first.js", | ||
], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning > it should warn when a differentiator is different 1`] = ` | ||
[ | ||
{ | ||
"css": [ | ||
"first.css", | ||
], | ||
"js": [], | ||
}, | ||
{ | ||
"css": [ | ||
"second.css", | ||
], | ||
"js": [], | ||
"run_at": "document_start", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning > it should warn when a differentiator is different 2`] = ` | ||
[ | ||
{ | ||
"css": [], | ||
"js": [ | ||
"first.js", | ||
"second.js", | ||
], | ||
"run_at": "document_end", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning > it should warn when a differentiator is different 3`] = ` | ||
[ | ||
{ | ||
"all_frames": true, | ||
"css": [ | ||
"first.css", | ||
], | ||
"js": [], | ||
}, | ||
{ | ||
"css": [ | ||
"second.css", | ||
], | ||
"js": [], | ||
}, | ||
] | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning 1`] = ` | ||
[MockFunction warn] { | ||
"calls": [ | ||
[ | ||
"Duplicate file in the manifest content_scripts: first.css | ||
More info: https://github.com/fregante/webext-dynamic-content-scripts/issues/62", | ||
], | ||
], | ||
"results": [ | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
], | ||
} | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning 2`] = ` | ||
[MockFunction warn] { | ||
"calls": [ | ||
[ | ||
"Duplicate file in the manifest content_scripts: first.js | ||
More info: https://github.com/fregante/webext-dynamic-content-scripts/issues/62", | ||
], | ||
[ | ||
"Duplicate file in the manifest content_scripts: second.js | ||
More info: https://github.com/fregante/webext-dynamic-content-scripts/issues/62", | ||
], | ||
], | ||
"results": [ | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
], | ||
} | ||
`; | ||
|
||
exports[`excludeDuplicateFiles > warning 3`] = ` | ||
[MockFunction warn] { | ||
"calls": [ | ||
[ | ||
"Duplicate file in the manifest content_scripts: first.css | ||
More info: https://github.com/fregante/webext-dynamic-content-scripts/issues/62", | ||
], | ||
], | ||
"results": [ | ||
{ | ||
"type": "return", | ||
"value": undefined, | ||
}, | ||
], | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.