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(/=+$/, ""); |
+ } |
+}; |