Skip to content
Myr

Added failing 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 dc45e93 · Browse files · 1 file+20 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+20 added−0 removed

  • tests:+20 added−0 removed

1 file+20 added−0 removed

modified:test/view.test.js+20 added
464 unmodified lines
465 { url: '/role' },466 { body: '<li>Role: admin</li><li>Role: member</li>' });467 },468 469 'test #partial() locals': function(assert){470 var app = create();471472 app.get('/', function(req, res, next){473 res.send(res.render('pet-count.jade', {474 partial: true,475 layout: false,476 locals: {477 pets: {478 count: 5479 }480 }481 }));482 });483484 assert.response(app,485 { url: '/' },486 { body: 'We have 5 cool pets' });487 },488 489 'test #partial() inheriting initial locals': function(assert){490 var app = create();491492 app.get('/pets', function(req, res, next){
129 unmodified lines