From 9a1b2c8ccc5f079dae4966dfd011f4076a53dc20 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 27 May 2017 19:20:27 +0200 Subject: convert tests to ava tests --- src/helpers-test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/helpers-test.ts') 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(); }); -- cgit v1.2.3