Skip to content

Commit

Permalink
Change test module name to match runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
luxaritas committed Nov 17, 2023
1 parent 199cda6 commit a4be95e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/base-node-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const createDOMPurify = require('../dist/purify.cjs');
const sanitizeTestSuite = require('./test-suite');
const bootstrapTestSuite = require('./bootstrap-test-suite');

async function run(createWindow) {
async function run(createWindow, runtimeName) {
qunitTap(QUnit, (line) => {
if (/^not ok/.test(line)) {
process.exitCode = 1;
Expand Down Expand Up @@ -44,7 +44,7 @@ async function run(createWindow) {

QUnit.module('DOMPurify - bootstrap', bootstrapTestSuite(createWindow));

QUnit.module('DOMPurify in jsdom');
QUnit.module(`DOMPurify in ${runtimeName}`);

const window = createWindow();
const DOMPurify = createDOMPurify(window);
Expand Down
2 changes: 1 addition & 1 deletion test/happy-dom-node-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ function createWindow() {
return window;
}

run(createWindow);
run(createWindow, 'happy-dom');
2 changes: 1 addition & 1 deletion test/jsdom-node-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ function createWindow() {
return window;
}

run(createWindow);
run(createWindow, 'jsdom');

0 comments on commit a4be95e

Please sign in to comment.