X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Flib%2Frouter.js;h=c89cc196472a1cb6d1959126a572afb3f7789aa6;hb=df1c89ca311a06417104e6be0ade6617cbfae60e;hp=f9a2401eba045bb3b0972acac39287a07a907a01;hpb=1296167385b38ca226f17c3a87ac2135d53c769b;p=squeep-api-dingus diff --git a/test/lib/router.js b/test/lib/router.js index f9a2401..c89cc19 100644 --- 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;