aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/helpers-test.ts7
1 files changed, 7 insertions, 0 deletions
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();
});