diff options
Diffstat (limited to 'src/util/helpers-test.ts')
-rw-r--r-- | src/util/helpers-test.ts | 11 |
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(); }); |