Skip to content
Myr

Checking if options are avilable for mock route

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

authored by visionmedia · committed by visionmedia · parent 7899e45 · Browse files · 5 files+10 added−15 removed
This commit

State

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

Diff stats

5 files+10 added−15 removed

  • tests:+10 added−7 removed
  • other:+0 added−8 removed

5 files+10 added−15 removed

modified:lib/express.core.js-8 removed
595 unmodified lines
596 put = Express.routeFunctionFor('put')597 use = Express.use598 599})()600601use('response', Express.Logger)602603get('/user/:name', function(){604 'User ' + param('name')605})606607// Express.start()
modified:lib/express.spec.helpers.js+6 added-4 removed
modified:spec/spec.node.js+1 added-1 removed
modified:spec/spec.routing.js+2 added-1 removed
4 unmodified lines
5 it 'should return a routing function'6 Express.routes = []7 foo = Express.routeFunctionFor('get')8 foo('/some/path', function(){ return 'body' })9 foo('/something/else', function(){ return 'body' })9 Express.routes.should.have_length 110 Express.routes.should.have_length 211 end12 end13 14 describe '.normalizePath()'
82 unmodified lines
modified:spec/spec.spec.helpers.js+1 added-1 removed