removed deprecated logger-related functions, default to console if no logger provided
[squeep-api-dingus] / test / lib / router.js
index f9a2401eba045bb3b0972acac39287a07a907a01..8a9d1e26f8e1e502cc5b0e164bb78d56ec457785 100644 (file)
@@ -5,7 +5,7 @@
 const assert = require('assert');
 const sinon = require('sinon'); // eslint-disable-line node/no-unpublished-require
 const Router = require('../../lib/router');
-const PathParameter = require('../../lib/router/path-parameter')
+const PathParameter = require('../../lib/router/path-parameter');
 const { DingusError } = require('../../lib/errors');
 
 const noExpectedException = 'did not get expected exception';
@@ -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;