Skip to content

Commit

Permalink
Merge pull request #24 from pgherveou/patch-1
Browse files Browse the repository at this point in the history
Update test/express-expose.test.js
  • Loading branch information
tj committed Aug 7, 2012
2 parents 583bdde + b3c04a3 commit 3c27258
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion test/express-expose.test.js
@@ -1,4 +1,3 @@

/**
* Module dependencies.
*/
Expand Down Expand Up @@ -132,5 +131,19 @@ module.exports = {
vm.runInNewContext(js, scope);
scope.sub(8,7).should.equal(1);
scope.should.not.have.property('add');
},

'test render view' : function (done) {
var app = express();

app.expose('var foo;');
app.set('view engine', 'jade');
app.set('views', __dirname + '/views');

app.render('index', function(err, str){
if (err) return done(err);
str.should.match(/var foo;/);
done();
});
}
};

0 comments on commit 3c27258

Please sign in to comment.