2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03: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
+1 -1
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) {