Skip to content
Myr

Added test helper local precedence 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 734f777 · 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
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){218 app.get('/precedence', function(req, res){219 req.session = { name: 'tj' };220 res.render('dynamic-helpers.jade', {221 layout: false,222 locals: {
5 unmodified lines
228 assert.response(app,229 { url: '/' },230 { body: '<p>tj holowaychuk bar</p>' });231 assert.response(app,232 { url: '/' },232 { url: '/precedence' },233 { body: '<p>tj foobar bar</p>' });234 },235 236 'test #partial()': function(assert){
190 unmodified lines