aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/util/sanitizer.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2023-05-01Update URL sanitizer to allow more protocols (#38531)Kyle Tsang1-10/+68
Co-authored-by: XhmikosR <[email protected]>
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-1/+1
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2022-05-31JS: tests fixes & standardization of spies usage (#36398)Louis-Maxime Piton1-2/+2
* Fix carousel spec typo * Change carousel test name in align with testing method * Make the spies declarations the same everywhere
2021-10-07Sanitizer: fix logic and add a test. (#35133)XhmikosR1-0/+25
This was broken in 2596c97 inadvertently. Added a test so that we don't hit this in the future.
2021-02-19Adjust regex `SAFE_URL_PATTERN` for use with test method of regexes. (#33136)Nikon the Third1-0/+10
The test method on regexes behaves different than the match method on strings in the presence of the global modifier. Add a unit test for sanitizing the same template twice. Co-authored-by: XhmikosR <[email protected]>
2020-11-02tests: fix sanitizer test. (#32045)XhmikosR1-1/+1
The test template does not include a `script` tag so the test always returned true.
2020-11-02tests: switch to using `toContain()` to check for substring presence (#32043)XhmikosR1-4/+4
2020-06-19Change whitelist to allowlist (#31066)Patrick H. Lauke1-7/+7
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+70