Skip to content
Myr

added test for root partial lookup

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 1e46218 · Browse files · 2 files+11 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

2 files+11 added−0 removed

  • tests:+11 added−0 removed

2 files+11 added−0 removed

added:test/fixtures/nested/partial.jade+1 added
1!= partial('stats', { hits: 15, misses: 1 })
modified:test/view.test.js+10 added
597 unmodified lines
598599 assert.response(app,600 { url: '/stats/callback/2' },601 { body: 'got: <p>Hits 12</p><p>Misses 1</p>' });602603 // root lookup604605 app.get('/root', function(req, res){606 res.partial('nested/partial');607 });608609 assert.response(app,610 { url: '/root' },611 { body: '' });612 },613 614 'test #partial() with several calls': function(){615 var app = create();
419 unmodified lines