Skip to content
Myr

Added test for specific layouts with "view engine" set

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 a461815 · 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/view.test.js+14 added
104 unmodified lines
105 { url: '/no-ext' },106 { body: '<cool><p>Welcome</p></cool>' });107 },108 109 'test #render() specific layout "view engine"': function(assert){110 var app = express.createServer();111 app.set('views', __dirname + '/fixtures');112 app.set('view engine', 'jade');113 114 app.get('/', function(req, res){115 res.render('index', { layout: 'cool-layout' });116 });117 118 assert.response(app,119 { url: '/' },120 { body: '<cool><p>Welcome</p></cool>' });121 },122 123 'test #partial()': function(assert){124 var app = express.createServer();125 app.set('views', __dirname + '/fixtures');126
134 unmodified lines