Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use express 3.x dev dep

  • Loading branch information...
commit 37b6e9548b254ee7eb437b84ad5852bf95951c6b 1 parent 9df22a4
TJ Holowaychuk tj authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  package.json
  2. +4 −4 test/namespace.test.js
2  package.json
View
@@ -5,7 +5,7 @@
, "keywords": ["express"]
, "main": "index"
, "devDependencies": {
- "express": "2.5.x"
+ "express": "3.x"
, "ejs": ">= 0.0.1"
, "expresso": ">= 0.0.1"
}
8 test/namespace.test.js
View
@@ -8,7 +8,7 @@ var express = require('express')
module.exports = {
'test app.namespace(str, fn)': function(){
- var app = express.createServer()
+ var app = express()
, id;
app.get('/one', function(req, res){
@@ -56,7 +56,7 @@ module.exports = {
'test app.namespace(str, fn) nesting': function(done){
var pending = 6
, calls = 0
- , app = express.createServer();
+ , app = express();
function finished() {
--pending || function(){
@@ -130,7 +130,7 @@ module.exports = {
},
'test fn.route': function(){
- var app = express.createServer();
+ var app = express();
app.namespace('/user/:id', function(){
app.get('/', function handler(req, res){
@@ -144,7 +144,7 @@ module.exports = {
{ body: 'OK' });
},
'test app.namespace(str, middleware, fn)': function(done){
- var app = express.createServer(),
+ var app = express(),
calledA = 0,
calledB = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.