gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: add base URL canonicalization


From: gnunet
Subject: [taler-wallet-core] branch master updated: add base URL canonicalization test
Date: Thu, 09 Jul 2020 16:20:29 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 6e688975 add base URL canonicalization test
6e688975 is described below

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

    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 35f3d87b..dbecf14b 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();
 });

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]