Skip to content
Myr

Added another partial 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 4006506 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • tests:+3 added−3 removed

2 files+3 added−3 removed

modified:test/fixtures/pet-land.jade+1 added-1 removed
1div!= partial('pet', { collection: pets, site: 'Animal land' })1div!= partial('pet', { collection: pets, locals: { site: 'Animal land' }})
modified:test/view.test.js+2 added-2 removed
490 unmodified lines
491492 app.get('/', function(req, res, next){493 res.render('pet-land.jade', {494 locals: {495 pets: ['Tobi', 'Jane']495 pets: ['Ewald']496 }497 });498 });499500 assert.response(app,501 { url: '/' },502 { body: '<li>Tobi is the coolest of Animal land</li><li>Jane</li>' });502 { body: '<html><body><div><li>Ewald is the coolest of Animal land</li></div></body></html>' });503 },504 505 'test #partial() inheriting initial locals': function(assert){506 var app = create();
131 unmodified lines