Fix build in windows

(cherry picked from commit 275ab37)
This commit is contained in:
Luiz Américo
2016-08-21 22:50:20 +02:00
committed by Nils Knappmeier
parent ed879a6068
commit cc554a5813
+3 -2
View File
@@ -13,8 +13,9 @@ module.exports = function(grunt) {
throw err;
}
var expected = fs.readFileSync('./spec/expected/empty.amd.js');
if (stdout.toString() !== expected.toString()) {
var expected = fs.readFileSync('./spec/expected/empty.amd.js').toString().replace(/\r\n/g, '\n');
if (stdout.toString() !== expected) {
throw new Error('Expected binary output differed:\n\n"' + stdout + '"\n\n"' + expected + '"');
}