Permalink
Browse files

make tests backward compatible

  • Loading branch information...
1 parent 0ba287d commit c8d92586a55d07e094c3b21449bcf31f16079858 Tim Anema committed Aug 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/test.js
View
@@ -2,7 +2,7 @@ var testHelper = require('./helpers.test.js');
console.log("all tests completed successfully!");
var express = require("express");
-var app = express();
+var app = express.createServer ? express.createServer() : express();
var helpers = require('../lib/express-helpers')(app);
app.set('views', __dirname);
app.set('view engine', 'ejs');

0 comments on commit c8d9258

Please sign in to comment.