Skip to content

Commit 175aa08

Browse files
committed
more tests
1 parent c9ff619 commit 175aa08

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/view.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,10 +711,19 @@ module.exports = {
711711

712712
'test #partial() relative lookup': function(){
713713
var app = create();
714+
714715
app.get('/', function(req, res, next){
715716
res.partial('forum/thread.jade');
716717
});
717718

719+
app.get('/2', function(req, res, next){
720+
res.partial('forum/../forum/thread.jade');
721+
});
722+
723+
assert.response(app,
724+
{ url: '/2' },
725+
{ body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });
726+
718727
assert.response(app,
719728
{ url: '/' },
720729
{ body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });

0 commit comments

Comments
 (0)