Skip to content
Myr

tests: add test for rendering extensionless file without view engine

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 60e2008 · Browse files · 1 file+14 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+14 added−0 removed

  • tests:+14 added−0 removed

1 file+14 added−0 removed

modified:test/res.render.js+14 added
32 unmodified lines
33 .get('/')34 .expect('<p>tobi</p>', done);35 })3637 it('should error without "view engine" set and no file extension', function (done) {38 var app = createApp();3940 app.locals.user = { name: 'tobi' };4142 app.use(function(req, res){43 res.render(__dirname + '/fixtures/user');44 });4546 request(app)47 .get('/')48 .expect(500, /No default engine was specified/, done);49 })5051 it('should expose app.locals', function(done){52 var app = createApp();5354 app.set('views', __dirname + '/fixtures');
289 unmodified lines