0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

tests: fix sanitizer test. (#32045)

The test template does not include a `script` tag so the test always returned true.
This commit is contained in:
XhmikosR 2020-11-02 14:49:56 +02:00 committed by GitHub
parent 71010cb1e9
commit e2697b0573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ describe('Sanitizer', () => {
const result = sanitizeHtml(template, DefaultAllowlist, null)
expect(result).not.toContain('script')
expect(result).not.toContain('href="javascript:alert(7)')
})
it('should allow aria attributes and safe attributes', () => {