mirror of
https://github.com/expressjs/express.git
synced 2026-02-21 19:41:36 +00:00
committed by
Douglas Christopher Wilson
parent
f540c3b019
commit
3531987844
@@ -124,7 +124,7 @@ describe('Route', function(){
|
||||
var req = { method: 'POST', url: '/' };
|
||||
var route = new Route('');
|
||||
|
||||
route.get(function(req, res, next) {
|
||||
route.get(function () {
|
||||
throw new Error('not me!');
|
||||
})
|
||||
|
||||
@@ -198,7 +198,7 @@ describe('Route', function(){
|
||||
var req = { order: '', method: 'GET', url: '/' };
|
||||
var route = new Route('');
|
||||
|
||||
route.all(function(req, res, next){
|
||||
route.all(function () {
|
||||
throw new Error('foobar');
|
||||
});
|
||||
|
||||
@@ -224,7 +224,7 @@ describe('Route', function(){
|
||||
var req = { method: 'GET', url: '/' };
|
||||
var route = new Route('');
|
||||
|
||||
route.get(function(req, res, next){
|
||||
route.get(function () {
|
||||
throw new Error('boom!');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user