add base URL canonicalization test
This commit is contained in:
parent
63ebe1b2e2
commit
6e688975c7
@ -35,5 +35,12 @@ test("URL canonicalization", (t) => {
|
|||||||
"http://alice.example.com/exchange/",
|
"http://alice.example.com/exchange/",
|
||||||
helpers.canonicalizeBaseUrl("http://alice.example.com/exchange#foobar"),
|
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();
|
t.pass();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user