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 d7c6c9a · Browse files · 2 files+27 added−1 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+27 added−1 removed

  • tests:+27 added−1 removed

2 files+27 added−1 removed

modified:test/fixtures/forum/thread.jade+3 added-1 removed
1h1 Forum Thread1h1 Forum Thread2!= partial('../hello')3!= partial('../hello.haml')
modified:test/view.test.js+24 added
666 unmodified lines
667 { url: '/underscore' },668 { body: '<p>two</p>' });669 },670 671 'test #partial() relative lookup with "view engine"': function(){672 var app = create();673 app.set('view engine', 'jade');674675 app.get('/', function(req, res, next){676 res.render('forum/thread', { layout: false });677 });678679 assert.response(app,680 { url: '/' },681 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });682 },683684 'test #partial() relative lookup without "view engine"': function(){685 var app = create();686 app.get('/', function(req, res, next){687 res.render('forum/thread.jade', { layout: false });688 });689690 assert.response(app,691 { url: '/' },692 { body: '<h1>Forum Thread</h1><p>:(</p>\n<p>Hello World</p>' });693 },694695 'test #partial() with several calls': function(){696 var app = create();697 698 app.get('/', function(req, res, next){
417 unmodified lines