tests: add test for dispatching to empty route

This commit is contained in:
Douglas Christopher Wilson 2016-05-23 23:03:13 -04:00
parent e3dd191d54
commit 31dd549f35

View File

@ -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){