Skip to content
Myr

tests for Router#match()

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 8df73f3 · Browse files · 2 files+29 added−2 removed
This commit

State

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

Diff stats

2 files+29 added−2 removed

  • tests:+26 added−1 removed
  • other:+3 added−1 removed

2 files+29 added−2 removed

modified:lib/router/index.js+3 added-1 removed
322 unmodified lines
323};324325/**326 * Attempt to match a route for `req`327 * starting from offset `i`.327 * with optional starting index of `i`328 * defaulting to 0.329 *330 * @param {IncomingMessage} req331 * @param {Number} i332 * @return {Route}
4 unmodified lines
337 var method = req.method.toLowerCase()338 , url = parse(req.url)339 , path = url.pathname340 , routes = this.map341 , i = i || 0342 , captures343 , route344 , keys;345
72 unmodified lines
modified:test/Router.js+26 added-1 removed