Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

update the tests to show a difference between `send(null)` and `send(und...

authored by Jonathan Ong · committed by Jonathan Ong · parents 5ddbb69, a36eeb9 · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • tests:+5 added−1 removed

1 file+5 added−1 removed

modified:test/res.send.js+5 added-1 removed
12 unmodified lines
13 });1415 request(app)16 .get('/')17 .expect('Content-Length', '0')18 .expect('', done);19 })20 })21
6 unmodified lines
28 });2930 request(app)31 .get('/')31 .expect('', done);32 .expect('', function(req, res){33 res.header.should.not.have.property('content-length');34 done();35 });36 })37 })3839 describe('.send(code)', function(){
359 unmodified lines