Skip to content

Commit

Permalink
Rename creation of DOMPurity in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeekens committed May 17, 2017
1 parent 5f52a2a commit 7bac0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/jsdom-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// Test DOMPurify + jsdom using Node.js (version 4 and up)
const
dompurify = require('../dist/purify'),
createDOMPurify = require('../dist/purify'),
jsdom = require('jsdom'),
testSuite = require('./test-suite'),
tests = require('./fixtures/expect'),
Expand Down Expand Up @@ -36,7 +36,7 @@ jsdom.env({
console.warn('Unable to load jQuery');
}

const DOMPurify = dompurify(window);
const DOMPurify = createDOMPurify(window);
if (!DOMPurify.isSupported) {
console.error('Unexpected error returned by jsdom.env():', err, err.stack);
process.exit(1);
Expand Down

0 comments on commit 7bac0cf

Please sign in to comment.