Permalink
Browse files

Fixing unit tests

  • Loading branch information...
1 parent 0c6c829 commit 307b36a3bf8865b65709ce11c829b454e716a0f9 @serby committed May 30, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 test/basic-versionator.test.js
  2. +2 −2 test/mapped-versionator.test.js
View
2 test/basic-versionator.test.js
@@ -55,7 +55,7 @@ describe('versionator', function() {
}
);
- return http.Server(app).listen(port);
+ return app.listen(port);
}
it('req.url has version removed from pathname', function(done) {
View
4 test/mapped-versionator.test.js
@@ -53,7 +53,7 @@ describe('versionator', function() {
describe('mapped middleware', function() {
function startServer(map, port) {
- var mapped = versionator.createMapped(map);
+ var mapped = versionator.createMapped(map);
var app = appEngine.createServer(
mapped.middleware,
function(req, res, next) {
@@ -62,7 +62,7 @@ describe('versionator', function() {
);
return {
- app: http.Server(app).listen(port),
+ app: app.listen(port),
mapped: mapped
};
}

0 comments on commit 307b36a

Please sign in to comment.