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 |