diff options
author | Florian Dold <florian@dold.me> | 2021-08-04 12:40:49 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-08-04 12:40:49 +0200 |
commit | a8e5b9568284898518fcb95e244742c9fd3edc69 (patch) | |
tree | 2d0ceca6e5d6386e063e9ae3532f2d93bc24d545 /packages/taler-wallet-cli | |
parent | f92cbdbf476d4b51e1315ae26679008ae6889f60 (diff) | |
download | wallet-core-a8e5b9568284898518fcb95e244742c9fd3edc69.tar.xz |
integration tests: check that TWG base URLs look well-formed
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-facade.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-facade.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-facade.ts index edbbbca00..1400d2e65 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-facade.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-api-facade.ts @@ -22,7 +22,6 @@ import { SandboxUserBundle, NexusUserBundle, launchLibeufinServices, - LibeufinSandboxApi, LibeufinNexusApi, } from "./libeufin"; @@ -52,6 +51,12 @@ export async function runLibeufinApiFacadeTest(t: GlobalTestState) { ); // check that original facade shows up. t.assertTrue(resp.data["facades"][0]["name"] == user01nexus.twgReq["name"]); + + const twgBaseUrl: string = resp.data["facades"][0]["twgBaseUrl"]; + t.assertTrue(typeof twgBaseUrl === "string"); + t.assertTrue(twgBaseUrl.startsWith("http://")); + t.assertTrue(twgBaseUrl.endsWith("/")); + // delete it. resp = await LibeufinNexusApi.deleteFacade( libeufinServices.libeufinNexus, |