projects
/
squeep-api-dingus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctx.matchedPath now stores raw route rather than processed array
[squeep-api-dingus]
/
test
/
lib
/
router.js
diff --git
a/test/lib/router.js
b/test/lib/router.js
index f9a2401eba045bb3b0972acac39287a07a907a01..c89cc196472a1cb6d1959126a572afb3f7789aa6 100644
(file)
--- a/
test/lib/router.js
+++ b/
test/lib/router.js
@@
-298,6
+298,7
@@
describe('Router', function () {
const { handler } = router.lookup(method, path, ctx);
assert.strictEqual(handler, stubHandler);
+ assert.strictEqual(ctx.matchedPath, urlPath);
});
it('does not find handler with trailing slash', function () {
router.ignoreTrailingSlash = false;