Skip to content
Myr

Added test for absolute view path

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

  • tests:+6 added−0 removed

1 file+6 added−0 removed

modified:test/view.test.js+6 added
44 unmodified lines
45 res.render('invalid.jade', { layout: false }, function(err){46 res.send(err.arguments[0]);47 });48 });49 app.get('/absolute', function(req, res){50 res.render(__dirname + '/fixtures/index.jade', { layout: false });51 });5253 assert.response(app,54 { url: '/' },55 { body: '<p>Welcome</p>', headers: { 'Content-Type': 'text/html; charset=utf-8' }});56 assert.response(app,57 { url: '/jade' },58 { body: '<p>Welcome</p>' });59 assert.response(app,60 { url: '/absolute' },61 { body: '<p>Welcome</p>' });62 assert.response(app,63 { url: '/haml' },64 { body: '\n<p>Hello World</p>' });65 assert.response(app,66 { url: '/callback' },
278 unmodified lines