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(); });