Skip to content
Myr

s/foo/relative/

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 b463bd7 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/view.test.js+2 added-2 removed
100 unmodified lines
101 });102 app.get('/no-ext', function(req, res){103 res.render('index.jade', { layout: 'cool-layout' });104 });105 app.get('/foo', function(req, res){105 app.get('/relative', function(req, res){106 res.render('index.jade', { layout: 'layouts/foo.jade' });107 });108109 assert.response(app,
2 unmodified lines
112 assert.response(app,113 { url: '/no-ext' },114 { body: '<cool><p>Welcome</p></cool>' });115 assert.response(app,116 { url: '/foo' },116 { url: '/relative' },117 { body: '<foo></foo>' });118 },119 120 'test #render() specific layout "view engine"': function(assert){
212 unmodified lines