Skip to content
Myr

Added test for periods in dirname when using "view engine"

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 99820e7 · Browse files · 1 file+13 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+13 added−0 removed

  • tests:+13 added−0 removed

1 file+13 added−0 removed

modified:test/view.test.js+13 added
290 unmodified lines
291 { url: '/' },292 { body: '<cool><p>Welcome</p></cool>' });293 },294 295 'test #render() "view engine" with periods in dirname': function(){296 var app = create();297 app.set('view engine', 'jade');298 299 app.get('/', function(req, res){300 res.render('index', { layout: __dirname + '/fixtures/user/../cool-layout' });301 });302 303 assert.response(app,304 { url: '/' },305 { body: '<cool><p>Welcome</p></cool>' });306 },307 308 'test #render() scope': function(){309 var app = create();310 app.set('view engine', 'jade');311
592 unmodified lines