Skip to content
Myr

Added failing test for absolute layouts

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 e554378 · Browse files · 1 file+6 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+6 added−0 removed

  • tests:+6 added−0 removed

1 file+6 added−0 removed

modified:test/view.test.js+6 added
103 unmodified lines
104 });105 app.get('/relative', function(req, res){106 res.render('index.jade', { layout: 'layouts/foo.jade' });107 });108 app.get('/absolute', function(req, res){109 res.render('index.jade', { layout: __dirname + '/fixtures/layouts/foo.jade' });110 });111112 assert.response(app,113 { url: '/' },114 { body: '<cool><p>Welcome</p></cool>' });
2 unmodified lines
117 { body: '<cool><p>Welcome</p></cool>' });118 assert.response(app,119 { url: '/relative' },120 { body: '<foo></foo>' });121 assert.response(app,122 { url: '/absolute' },123 { body: '<foo></foo>' });124 },125 126 'test #render() specific layout "view engine"': function(assert){127 var app = create();
211 unmodified lines