Skip to content

Commit

Permalink
See #361
Browse files Browse the repository at this point in the history
Adjusted the tests slightly to match Chrome >77 as well
  • Loading branch information
cure53 committed Sep 12, 2019
1 parent 300bd5b commit 7bac505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test-suite.js
Expand Up @@ -548,7 +548,7 @@ module.exports = function(DOMPurify, window, tests, xssTests) {
QUnit.test( 'Test for correct return value when RETURN_TRUSTED_TYPE is true', function (assert) {
var clean = DOMPurify.sanitize("<b>hello goodbye</b>", {RETURN_TRUSTED_TYPE: true});
var type = typeof clean;
assert.equal(type, 'TrustedHTML');
assert.contains(type, ['TrustedHTML', 'string']); // it can be either - depening on browser versions
} );
QUnit.test( 'Test for correct return value when RETURN_TRUSTED_TYPE is false', function (assert) {
var clean = DOMPurify.sanitize("<b>hello goodbye</b>", {RETURN_TRUSTED_TYPE: false});
Expand Down

0 comments on commit 7bac505

Please sign in to comment.