Skip to content
Myr

Added failing test for view helper precedence

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 498115d · 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
213 unmodified lines
214 app.get('/', function(req, res){215 req.session = { name: 'tj' };216 res.render('dynamic-helpers.jade', { layout: false });217 });218 app.get('/', function(req, res){219 req.session = { name: 'tj' };220 res.render('dynamic-helpers.jade', {221 layout: false,222 locals: {223 lastName: 'foobar'224 }225 });226 });227 228 assert.response(app,229 { url: '/' },230 { body: '<p>tj holowaychuk bar</p>' });231 assert.response(app,232 { url: '/' },233 { body: '<p>tj foobar bar</p>' });234 },235 236 'test #partial()': function(assert){237 var app = create();
189 unmodified lines