aboutsummaryrefslogtreecommitdiff
path: root/src/util/helpers-test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-30 16:09:32 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-30 16:09:32 +0530
commitaaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf (patch)
tree9274139660f30c4857d80044eb4ac283aac1775a /src/util/helpers-test.ts
parent15e18440dbad55df19977a2eb7053681259afc18 (diff)
downloadwallet-core-aaf950e2ad5c07d4423f9822e3a0ae9f7b8d2bdf.tar.xz
re-format with prettier v2, fix HTML
Diffstat (limited to 'src/util/helpers-test.ts')
-rw-r--r--src/util/helpers-test.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/helpers-test.ts b/src/util/helpers-test.ts
index 74817120a..35f3d87b2 100644
--- a/src/util/helpers-test.ts
+++ b/src/util/helpers-test.ts
@@ -14,25 +14,26 @@
TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-
import test from "ava";
import * as helpers from "./helpers";
-
test("URL canonicalization", (t) => {
// converts to relative, adds https
t.is(
"https://alice.example.com/exchange/",
- helpers.canonicalizeBaseUrl("alice.example.com/exchange"));
+ helpers.canonicalizeBaseUrl("alice.example.com/exchange"),
+ );
// keeps http, adds trailing slash
t.is(
"http://alice.example.com/exchange/",
- helpers.canonicalizeBaseUrl("http://alice.example.com/exchange"));
+ helpers.canonicalizeBaseUrl("http://alice.example.com/exchange"),
+ );
// keeps http, adds trailing slash
t.is(
"http://alice.example.com/exchange/",
- helpers.canonicalizeBaseUrl("http://alice.example.com/exchange#foobar"));
+ helpers.canonicalizeBaseUrl("http://alice.example.com/exchange#foobar"),
+ );
t.pass();
});