mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
update the tests to show a difference between send(null) and send(undefiend)
This commit is contained in:
parent
7018d3d0e6
commit
a36eeb96f3
|
|
@ -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();
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user