Skip to content

Commit

Permalink
Fix build in windows
Browse files Browse the repository at this point in the history
(cherry picked from commit 275ab37)
  • Loading branch information
blikblum authored and nknapp committed May 14, 2017
1 parent ed879a6 commit cc554a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tasks/test.js
Expand Up @@ -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 + '"');
}

Expand Down

0 comments on commit cc554a5

Please sign in to comment.