diff --git a/test/res.send.js b/test/res.send.js index 8f631593..9de7cbd3 100644 --- a/test/res.send.js +++ b/test/res.send.js @@ -14,6 +14,7 @@ describe('res', function(){ request(app) .get('/') + .expect('Content-Length', '0') .expect('', done); }) }) @@ -28,7 +29,10 @@ describe('res', function(){ request(app) .get('/') - .expect('', done); + .expect('', function(req, res){ + res.header.should.not.have.property('content-length'); + done(); + }); }) })