Merge pull request #1889 from vesln/send-null-undefined

update the tests to show a difference between `send(null)` and `send(und...
This commit is contained in:
Jonathan Ong 2014-01-14 09:17:04 -08:00
commit 121f8d02f3

View File

@ -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();
});
})
})