ctx.matchedPath now stores raw route rather than processed array
[squeep-api-dingus] / test / lib / router.js
index f9a2401eba045bb3b0972acac39287a07a907a01..c89cc196472a1cb6d1959126a572afb3f7789aa6 100644 (file)
@@ -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;