Merge pull request #102 from PradnyaBaviskar/fix-test-for-windows

Fix test for different line endings on Windows
This commit is contained in:
Miroslav Bajtoš 2015-03-05 08:04:36 +01:00
commit bfcd3ff15e
1 changed files with 4 additions and 2 deletions

View File

@ -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('<!DOCTYPE html>\n<html>\n<head lang="en">\n' +
expect(res.text).to.eql(('<!DOCTYPE html>\n<html>\n<head lang="en">\n' +
' <meta charset="UTF-8">\n <title>simple-app</title>\n' +
'</head>\n<body>\n<h1>simple-app</h1>\n</body>\n</html>');
'</head>\n<body>\n<h1>simple-app</h1>\n' +
'</body>\n</html>').replace(/\n/g, os.EOL));
done();
});
});