Skip to content
Myr

tests: add test for res.send() without arguments

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

closes #2778 closes #2783

authored by Ricardo Bin · committed by Douglas Christopher Wilson · parent e5ec966 · Browse files · 1 file+14 added−0 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+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:test/res.send.js+14 added
3 unmodified lines
4var methods = require('methods');5var request = require('supertest');67describe('res', function(){8 describe('.send()', function(){9 it('should set body to ""', function(done){10 var app = express();1112 app.use(function(req, res){13 res.send();14 });1516 request(app)17 .get('/')18 .expect(200, '', done);19 })20 })2122 describe('.send(null)', function(){23 it('should set body to ""', function(done){24 var app = express();25
548 unmodified lines