taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6e688975c75c52fe69286531615952d56114fcc7
parent 63ebe1b2e296aabb79cb1756d5dfc82c1ba4fe02
Author: Florian Dold <florian.dold@gmail.com>
Date:   Thu,  9 Jul 2020 19:50:24 +0530

add base URL canonicalization test

Diffstat:
Msrc/util/helpers-test.ts | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

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