0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-18 10:52:19 +01:00
tests: fix sanitizer test.

The test template does not include a `script` tag so the test always returned true.
This commit is contained in:
XhmikosR 2020-11-02 15:02:16 +02:00
parent 3063d74b86
commit b3aa3958da

View File

@ -1170,7 +1170,7 @@ $(function () {
})
var tooltip = $trigger.data('bs.tooltip')
assert.strictEqual(tooltip.config.template.indexOf('script'), -1)
assert.strictEqual(tooltip.config.template.indexOf('href="javascript:alert(7)"'), -1)
})
QUnit.test('should allow custom sanitization rules', function (assert) {