Skip to content
Myr

Added another partial locals 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 14facdb · Browse files · 2 files+6 added−8 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+6 added−8 removed

  • tests:+6 added−8 removed

2 files+6 added−8 removed

added:test/fixtures/pet-land.jade+1 added
1div!= partial('pet', { collection: pets, site: 'Animal land' })
modified:test/view.test.js+5 added-8 removed
488 unmodified lines
489 'test #partial() locals with collection': function(assert){490 var app = create();491492 app.get('/', function(req, res, next){493 res.send(res.partial('pet.jade', {494 partial: true,495 layout: false,496 collection: ['Tobi', 'Jane'],497 locals: {498 site: 'Animal land'499 }500 }));493 res.render('pet-land.jade', {494 locals: {495 pets: ['Tobi', 'Jane']496 }497 });498 });499500 assert.response(app,501 { url: '/' },
136 unmodified lines