mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
committed by
Douglas Christopher Wilson
parent
59aae7686b
commit
2a89eb5c74
@@ -606,8 +606,8 @@ describe('Router', function(){
|
||||
var req2 = { url: '/foo/10/bar', method: 'get' };
|
||||
var router = new Router();
|
||||
var sub = new Router();
|
||||
var cb = after(2, done)
|
||||
|
||||
done = after(2, done);
|
||||
|
||||
sub.get('/bar', function(req, res, next) {
|
||||
next();
|
||||
@@ -626,14 +626,14 @@ describe('Router', function(){
|
||||
assert.ifError(err);
|
||||
assert.equal(req1.ms, 50);
|
||||
assert.equal(req1.originalUrl, '/foo/50/bar');
|
||||
done();
|
||||
cb()
|
||||
});
|
||||
|
||||
router.handle(req2, {}, function(err) {
|
||||
assert.ifError(err);
|
||||
assert.equal(req2.ms, 10);
|
||||
assert.equal(req2.originalUrl, '/foo/10/bar');
|
||||
done();
|
||||
cb()
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -896,7 +896,7 @@ describe('app.router', function(){
|
||||
|
||||
request(app)
|
||||
.get('/foo.json')
|
||||
.expect(200, 'foo as json', done)
|
||||
.expect(200, 'foo as json', cb)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ describe('app', function(){
|
||||
|
||||
request(app)
|
||||
.get('/forum')
|
||||
.expect(200, 'forum', done)
|
||||
.expect(200, 'forum', cb)
|
||||
})
|
||||
|
||||
it('should set the child\'s .parent', function(){
|
||||
|
||||
Reference in New Issue
Block a user