DEV: correct qunit runner for autospec
Was no longer working on latest nodes, unlink expects a callback Also cleans up eslint warnings.
This commit is contained in:
parent
d50deac676
commit
5b36fadec9
|
@ -1,3 +1,5 @@
|
||||||
|
/*eslint no-console: ["error", { allow: ["log", "error"] }] */
|
||||||
|
|
||||||
// Chrome QUnit Test Runner
|
// Chrome QUnit Test Runner
|
||||||
// Author: David Taylor
|
// Author: David Taylor
|
||||||
// Requires chrome-launcher and chrome-remote-interface from npm
|
// Requires chrome-launcher and chrome-remote-interface from npm
|
||||||
|
@ -21,7 +23,12 @@ const fs = require("fs");
|
||||||
if (QUNIT_RESULT) {
|
if (QUNIT_RESULT) {
|
||||||
(async () => {
|
(async () => {
|
||||||
await fs.stat(QUNIT_RESULT, (err, stats) => {
|
await fs.stat(QUNIT_RESULT, (err, stats) => {
|
||||||
if (stats && stats.isFile()) fs.unlink(QUNIT_RESULT);
|
if (stats && stats.isFile())
|
||||||
|
fs.unlink(QUNIT_RESULT, unlinkErr => {
|
||||||
|
if (unlinkErr) {
|
||||||
|
console.log("Error deleting " + QUNIT_RESULT + " " + unlinkErr);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue