Skip to content

Commit

Permalink
added test for root partial lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 24, 2011
1 parent 1e46218 commit 7fdf587
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/nested/partial.jade
@@ -0,0 +1 @@
!= partial('stats', { hits: 15, misses: 1 })
10 changes: 10 additions & 0 deletions test/view.test.js
Expand Up @@ -599,6 +599,16 @@ module.exports = {
assert.response(app,
{ url: '/stats/callback/2' },
{ body: 'got: <p>Hits 12</p><p>Misses 1</p>' });

// root lookup

app.get('/root', function(req, res){
res.partial('nested/partial');
});

assert.response(app,
{ url: '/root' },
{ body: '' });
},

'test #partial() with several calls': function(){
Expand Down

0 comments on commit 7fdf587

Please sign in to comment.