Skip to content

Node.js based forum software built for the modern web

Fix tests on Windows with CRLF

Peter Jaszkowiak5f36156e0d60
diff --git a/test/build.js b/test/build.js
index 9fc8230992..a05331f463 100644
--- a/test/build.js
+++ b/test/build.js
@@ -41,7 +41,7 @@ describe('minifier', function () {
assert(file.existsSync(destPath));
assert.strictEqual(
- fs.readFileSync(destPath).toString(),
+ fs.readFileSync(destPath).toString().replace(/\r\n/g, '\n'),
'(function (window, document) {' +
'\n\twindow.doStuff = function () {' +
'\n\t\tdocument.body.innerHTML = \'Stuff has been done\';' +