diff --git a/test/executor.test.js b/test/executor.test.js index 3f98556..3a5e66c 100644 --- a/test/executor.test.js +++ b/test/executor.test.js @@ -804,10 +804,11 @@ describe('executor', function() { .get('/') .end(function(err, res) { if (err) return done(err); - expect(res.text).to.eql(('\n\n\n' + + var EXPECTED_TEXT = '\n\n\n' + ' \n simple-app\n' + '\n\n

simple-app

\n' + - '\n').replace(/\n/g, os.EOL)); + '\n'; + expect(normalizeEols(res.text)).to.eql(normalizeEols(EXPECTED_TEXT)); done(); }); }); @@ -1129,3 +1130,7 @@ function envAppInstructions() { env: 'test', }); } + +function normalizeEols(str) { + return str.replace(/\r\n/g, '\n'); +}