mirror of
https://github.com/hanzoai/DOMPurify.git
synced 2026-09-24 16:55:05 +00:00
This is no longer needed since QUnit 2.1.1, and the call to QUnit.load() is safe to remove. https://qunitjs.com/api/QUnit/load/
25 lines
477 B
JavaScript
25 lines
477 B
JavaScript
/* jshint node: true, esnext: true */
|
|
/* global QUnit */
|
|
'use strict';
|
|
|
|
global.QUnit = require('qunit');
|
|
|
|
const qunitTap = require('qunit-tap');
|
|
const argument = process.argv[2];
|
|
|
|
qunitTap(QUnit, (line) => {
|
|
if (/^not ok/.test(line)) {
|
|
process.exitCode = 1;
|
|
return console.log('\n', line);
|
|
}
|
|
|
|
if (argument === '--dot') {
|
|
return process.stdout.write('.');
|
|
}
|
|
|
|
console.log(line);
|
|
});
|
|
|
|
const startQUnit = require('./jsdom-node');
|
|
startQUnit().then(() => {});
|