Skip to content
Myr

Added partial object 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 03e7b5d · 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
482 unmodified lines
483 { url: '/' },484 { body: 'We have 5 cool pets\n' });485 },486 487 'test #partial() object': function(assert){488 var app = create();489490 app.get('/', function(req, res, next){491 res.send(res.partial('item.jade', 'Wahoo'));492 });493494 assert.response(app,495 { url: '/' },496 { body: '<li>Wahoo</li>\n' });497 },498 499 'test #partial() locals with collection': function(assert){500 var app = create();501502 app.get('/', function(req, res, next){
145 unmodified lines