"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/purify.min.spec.js" between
DOMPurify-3.0.1.tar.gz and DOMPurify-3.0.2.tar.gz

About: DOMPurify is a DOM-only XSS sanitizer for HTML, MathML and SVG (written in JavaScript).

purify.min.spec.js  (DOMPurify-3.0.1):purify.min.spec.js  (DOMPurify-3.0.2)
import 'purify.min'; import 'purify.min';
import './test-suite'; import './test-suite';
import tests from './fixtures/expect'; import tests from './fixtures/expect.mjs';
const xssTests = tests.filter(function (element) { const xssTests = tests.filter(function (element) {
if (/alert/.test(element.payload)) { if (/alert/.test(element.payload)) {
return element; return element;
} }
}); });
QUnit.module('DOMPurify dist'); QUnit.module('DOMPurify dist');
testSuite(DOMPurify, window, tests, xssTests); testSuite(DOMPurify, window, tests, xssTests);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)