Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: test_runner.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Addressed further feedback from Sebastian Created Feb. 21, 2017, 10:35 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/synchronizer.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « test/synchronizer.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld