From 1fef75e7325c67e9684c8902affaedb945640b2e Mon Sep 17 00:00:00 2001 From: tdeekens Date: Mon, 13 Dec 2021 22:42:39 +0100 Subject: [PATCH] Adds test for parameter with numbers --- src/utils/matching/matchRequestUrl.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/matching/matchRequestUrl.test.ts b/src/utils/matching/matchRequestUrl.test.ts index 3d8a6a7ed..473e767dc 100644 --- a/src/utils/matching/matchRequestUrl.test.ts +++ b/src/utils/matching/matchRequestUrl.test.ts @@ -104,5 +104,8 @@ describe('coercePath', () => { expect(coercePath('https://example.com:1234/:userId')).toEqual( 'https\\://example.com\\:1234/:userId', ) + expect(coercePath('https://example.com:1234/:5678')).toEqual( + 'https\\://example.com\\:1234/:5678', + ) }) })