diff --git a/test/req.ip.js b/test/req.ip.js index 3ca575e1..1cd25521 100644 --- a/test/req.ip.js +++ b/test/req.ip.js @@ -79,8 +79,8 @@ describe('req', function(){ res.send(req.ip); }); - var test = request(app).get('/') - test.expect(200, getExpectedClientAddress(test._server), done); + var test = request(app).get('/') + test.expect(200, getExpectedClientAddress(test._server), done) }) }) }) diff --git a/test/res.sendFile.js b/test/res.sendFile.js index ece09ee0..927d3199 100644 --- a/test/res.sendFile.js +++ b/test/res.sendFile.js @@ -157,8 +157,8 @@ describe('res', function(){ describe('with "headers" option', function () { it('should accept headers option', function (done) { var headers = { - 'x-success': 'sent', - 'x-other': 'done' + 'x-success': 'sent', + 'x-other': 'done' }; var app = createApp(path.resolve(__dirname, 'fixtures/name.txt'), { headers: headers }); @@ -510,8 +510,8 @@ describe('res', function(){ it('should accept headers option', function(done){ var app = express(); var headers = { - 'x-success': 'sent', - 'x-other': 'done' + 'x-success': 'sent', + 'x-other': 'done' }; app.use(function(req, res){ @@ -730,19 +730,19 @@ describe('res', function(){ }) }) - describe('.sendfile(path, options)', function () { - it('should pass options to send module', function (done) { - var app = express() +describe('.sendfile(path, options)', function () { + it('should pass options to send module', function (done) { + var app = express() - app.use(function (req, res) { - res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 }) - }) + app.use(function (req, res) { + res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 }) + }) - request(app) + request(app) .get('/') .expect(200, 'to', done) - }) }) +}) function createApp(path, options, fn) { var app = express();