Skip to content
Myr

more tests

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 f026218 · Browse files · 1 file+17 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+17 added−0 removed

  • tests:+17 added−0 removed

1 file+17 added−0 removed

modified:test/view.test.js+17 added
674 unmodified lines
675 app.get('/', function(req, res, next){676 res.render('forum/thread', { layout: false });677 });678679 app.get('/2', function(req, res, next){680 res.render('forum/../forum/thread', { layout: false });681 });682683 assert.response(app,684 { url: '/2' },685 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });686687 assert.response(app,688 { url: '/' },689 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });690 },691692 'test #partial() relative lookup without "view engine"': function(){693 var app = create();694695 app.get('/', function(req, res, next){696 res.render('forum/thread.jade', { layout: false });697 });698699 app.get('/2', function(req, res, next){700 res.render('forum/../forum/thread.jade', { layout: false });701 });702703 assert.response(app,704 { url: '/2' },705 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });706707 assert.response(app,708 { url: '/' },709 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });710 },711
432 unmodified lines