aboutsummaryrefslogtreecommitdiff
path: root/src/helpers-test.ts
diff options
context:
space:
mode:
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();
});