Skip to content
Myr

Added failing partial local precedence test [reported by Nick Poulden]

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

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:test/view.test.js+17 added
482 unmodified lines
483 { url: '/' },484 { body: 'We have 5 cool pets\n' });485 },486 487 'test #partial() locals precedence': function(assert){488 var app = create();489490 app.get('/', function(req, res, next){491 res.render('greetings.jade', {492 locals: {493 name: 'TJ'494 , otherName: 'Overridden'495 }496 });497 });498499 assert.response(app,500 { url: '/' },501 { body: '<html><body><h1>TJ</h1><p>Welcome Overridden</p></body></html>' });502 },503 504 'test #partial() object': function(assert){505 var app = create();506507 app.get('/', function(req, res, next){
160 unmodified lines