Index: test_runner.js |
diff --git a/test_runner.js b/test_runner.js |
index 896539a2af42bfbf58b3ddae1b72a0a8436dfc03..59c024d6a8fa95c2bb824dd2063fa3d86b84afa2 100644 |
--- a/test_runner.js |
+++ b/test_runner.js |
@@ -15,13 +15,15 @@ |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
+/* eslint-env node */ |
+ |
"use strict"; |
-let fs = require("fs"); |
-let path = require("path"); |
-let process = require("process"); |
-let nodeunit = require("nodeunit"); |
-let qunit = require("node-qunit-phantomjs"); |
+const fs = require("fs"); |
+const path = require("path"); |
+const process = require("process"); |
+const nodeunit = require("nodeunit"); |
+const qunit = require("node-qunit-phantomjs"); |
let nodeunitFiles = []; |
let qunitFiles = []; |
@@ -51,9 +53,7 @@ function addTestPaths(testPaths, recurse) |
} |
} |
if (process.argv.length > 2) |
-{ |
addTestPaths(process.argv.slice(2), true); |
-} |
else |
{ |
addTestPaths( |