From 6e688975c75c52fe69286531615952d56114fcc7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 9 Jul 2020 19:50:24 +0530 Subject: add base URL canonicalization test --- src/util/helpers-test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/helpers-test.ts b/src/util/helpers-test.ts index 35f3d87b2..dbecf14b8 100644 --- a/src/util/helpers-test.ts +++ b/src/util/helpers-test.ts @@ -35,5 +35,12 @@ test("URL canonicalization", (t) => { "http://alice.example.com/exchange/", helpers.canonicalizeBaseUrl("http://alice.example.com/exchange#foobar"), ); + + // Remove search component + t.is( + "http://alice.example.com/exchange/", + helpers.canonicalizeBaseUrl("http://alice.example.com/exchange?foo=bar"), + ); + t.pass(); }); -- cgit v1.2.3