aboutsummaryrefslogtreecommitdiff
path: root/src/helpers-test.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 19:20:27 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 19:20:27 +0200
commit9a1b2c8ccc5f079dae4966dfd011f4076a53dc20 (patch)
tree961e2d42c69126791b9e890fa971f0f33ded1920 /src/helpers-test.ts
parent592fd62402b7f0fdb8dbe08605381d3a74d929f2 (diff)
downloadwallet-core-9a1b2c8ccc5f079dae4966dfd011f4076a53dc20.tar.xz
convert tests to ava tests
Diffstat (limited to 'src/helpers-test.ts')
-rw-r--r--src/helpers-test.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/helpers-test.ts b/src/helpers-test.ts
index d252e9720..4e9b994d6 100644
--- a/src/helpers-test.ts
+++ b/src/helpers-test.ts
@@ -1,21 +1,21 @@
-import {test, TestLib} from "talertest";
+import {test} from "ava";
import * as helpers from "./helpers";
-test("URL canonicalization", (t: TestLib) => {
+test("URL canonicalization", t => {
// converts to relative, adds https
- t.assertEqualsStrict(
+ 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.assertEqualsStrict(
+ 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.assertEqualsStrict(
+ 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();
});