diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-11-02 16:02:16 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-11-05 12:22:05 +0300 |
commit | b3aa3958daf8b34a7c6b5367cdb705b6164427b0 (patch) | |
tree | fdd5dbf6da98c8ab746732eb0653511ae855d877 /js/tests | |
parent | 3063d74b86f9adb20a689c753d5698391c2a2044 (diff) |
Backport #32045
tests: fix sanitizer test.
The test template does not include a `script` tag so the test always returned true.
Diffstat (limited to 'js/tests')
-rw-r--r-- | js/tests/unit/tooltip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index fb308cf388..4f55007c71 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -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) { |