Skip to content

Commit

Permalink
tests: add test for dispatching to empty route
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 24, 2016
1 parent e3dd191 commit 31dd549
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 31dd549

Please sign in to comment.