From 872889423ad9c6d9bce5e2ff613cf947304fdd2e Mon Sep 17 00:00:00 2001 From: Pradnya Baviskar Date: Wed, 4 Mar 2015 18:44:22 +0530 Subject: [PATCH] Fix test for different line endings on Windows --- test/executor.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/executor.test.js b/test/executor.test.js index dc485b4..789e00b 100644 --- a/test/executor.test.js +++ b/test/executor.test.js @@ -7,6 +7,7 @@ var fs = require('fs-extra'); var sandbox = require('./helpers/sandbox'); var appdir = require('./helpers/appdir'); var supertest = require('supertest'); +var os = require('os'); var SIMPLE_APP = path.join(__dirname, 'fixtures', 'simple-app'); @@ -434,9 +435,10 @@ describe('executor', function() { .get('/') .end(function(err, res) { if (err) return done(err); - expect(res.text).to.eql('\n\n\n' + + expect(res.text).to.eql(('\n\n\n' + ' \n simple-app\n' + - '\n\n

simple-app

\n\n'); + '\n\n

simple-app

\n' + + '\n').replace(/\n/g, os.EOL)); done(); }); });