Skip to content
Myr

Added status option test

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

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 536b16c · Browse files · 1 file+20 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+20 added−0 removed

  • tests:+20 added−0 removed

1 file+20 added−0 removed

modified:test/res.render.js+20 added
262 unmodified lines
263 });264 })265 })266 })267 268 describe('"status" options', function(){269 it('should set the .statusCode', function(done){270 var app = express();271272 app.set('views', __dirname + '/fixtures');273274 app.use(function(req, res){275 res.render('email.jade', { status: 202 });276 });277278 request(app)279 .get('/')280 .end(function(res){281 res.statusCode.should.equal(202);282 res.body.should.equal('<p>This is an email</p>');283 done();284 });285 })286 })287})