Skip to content
Myr

Added render() status 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 74a0673 · Browse files · 1 file+12 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+12 added−0 removed

  • tests:+12 added−0 removed

1 file+12 added−0 removed

modified:test/view.test.js+12 added
206 unmodified lines
207 { url: '/custom' },208 { body: '<p>2</p>'});209 },210 211 'test #render() status': function(assert){212 var app = create();213 214 app.get('/', function(req, res){215 res.render('hello.jade', { layout: false, status: 404 });216 });217 218 assert.response(app,219 { url: '/' },220 { body: '<p>:(</p>', status: 404 });221 },222 223 'test #render() view helpers': function(assert){224 var app = create();225226 app.helpers({
244 unmodified lines