Skip to content
Myr

tests: add test for dispatching to empty route

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent e3dd191 · Browse files · 1 file+5 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−0 removed

  • tests:+5 added−0 removed

1 file+5 added−0 removed

modified:test/Route.js+5 added
5 unmodified lines
6 , methods = require('methods')7 , assert = require('assert');89describe('Route', function(){10 it('should work without handlers', function(done) {11 var req = { method: 'GET', url: '/' }12 var route = new Route('/foo')13 route.dispatch(req, {}, done)14 })1516 describe('.all', function(){17 it('should add handler', function(done){18 var req = { method: 'GET', url: '/' };
225 unmodified lines