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

Unified Diff: test/stub-modules/utils.js

Issue 29375915: Issue 4878 - Start using ESLint for adblockpluscore (Closed)
Patch Set: Remove shared-node-browser env and Buffer global Created Feb. 23, 2017, 10:51 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/stub-modules/prefs.js ('k') | test/subscriptionClasses.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/stub-modules/utils.js
diff --git a/test/stub-modules/utils.js b/test/stub-modules/utils.js
index 7ba964e0d24127435bbd005e642524f2f9cc4905..7bebe506c5377332e5221c8447fbfffd15fe2534 100644
--- a/test/stub-modules/utils.js
+++ b/test/stub-modules/utils.js
@@ -1,12 +1,14 @@
-let crypto = require("crypto");
+"use strict";
+
+const crypto = require("crypto");
exports.Utils = {
- generateChecksum: function(lines)
+ generateChecksum(lines)
{
let buffer = new Buffer(lines.join("\n"), "utf-8");
let hash = crypto.createHash("md5");
hash.update(buffer);
return hash.digest("base64").replace(/=+$/, "");
},
- yield: () => undefined
+ yield() {}
};
« no previous file with comments | « test/stub-modules/prefs.js ('k') | test/subscriptionClasses.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld