Comparing version 1.2.1 to 1.2.2
@@ -286,2 +286,4 @@ // Load modules | ||
context = context || {}; | ||
var engine = null; | ||
@@ -288,0 +290,0 @@ |
{ | ||
"name": "vision", | ||
"description": "Templates rendering support for hapi.js", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"repository": "git://github.com/hapijs/vision", | ||
@@ -6,0 +6,0 @@ "main": "index", |
@@ -666,2 +666,18 @@ // Load modules | ||
it('renders without handler/global-context (with layout)', function (done) { | ||
var testView = new Vision.Manager({ | ||
engines: { html: require('handlebars') }, | ||
path: __dirname + '/templates', | ||
layout: true | ||
}); | ||
testView.render('valid/test', null, null, function (err, rendered, config) { | ||
expect(rendered).to.exist(); | ||
expect(rendered).to.contain('<div>\n <h1></h1>\n</div>\n'); | ||
done(); | ||
}); | ||
}); | ||
it('renders with a global context object', function (done) { | ||
@@ -668,0 +684,0 @@ |
84579
1707