Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yehuya committed Jan 22, 2025
1 parent 363a89d commit bc72d44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test-suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,15 +871,15 @@
undefined
);
assert.strictEqual(
typeof DOMPurify({ ...window, Element: undefined }).version,
typeof DOMPurify({ document, Element: undefined }).version,
'string'
);
assert.strictEqual(
DOMPurify({ ...window, Element: undefined }).isSupported,
DOMPurify({ document, Element: undefined }).isSupported,
false
);
assert.strictEqual(
DOMPurify({ ...window, Element: undefined }).sanitize,
DOMPurify({ document, Element: undefined }).sanitize,
undefined
);
assert.strictEqual(typeof DOMPurify(window).version, 'string');
Expand Down

0 comments on commit bc72d44

Please sign in to comment.