 Issue 29355872:
  Issue 4223 - Adapt synchronizer tests to work in adblockpluscore repository  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore
    
  
    Issue 29355872:
  Issue 4223 - Adapt synchronizer tests to work in adblockpluscore repository  (Closed) 
  Base URL: https://hg.adblockplus.org/adblockpluscore| Index: test/stub-modules/utils.js | 
| =================================================================== | 
| --- a/test/stub-modules/utils.js | 
| +++ b/test/stub-modules/utils.js | 
| @@ -1,1 +1,11 @@ | 
| -exports.Utils = {}; | 
| +let crypto = require("crypto"); | 
| + | 
| +exports.Utils = { | 
| + generateChecksum: function(lines) | 
| + { | 
| + let buffer = new Buffer(lines.join("\n"), "utf-8"); | 
| + let hash = crypto.createHash("md5"); | 
| + hash.update(buffer); | 
| + return hash.digest("base64").replace(/=+$/, ""); | 
| + } | 
| +}; |