tests: add test for dispatching to empty route
This commit is contained in:
parent
e3dd191d54
commit
31dd549f35
@ -7,6 +7,11 @@ var express = require('../')
|
||||
, assert = require('assert');
|
||||
|
||||
describe('Route', function(){
|
||||
it('should work without handlers', function(done) {
|
||||
var req = { method: 'GET', url: '/' }
|
||||
var route = new Route('/foo')
|
||||
route.dispatch(req, {}, done)
|
||||
})
|
||||
|
||||
describe('.all', function(){
|
||||
it('should add handler', function(done){
|
||||
|
Loading…
Reference in New Issue
Block a user