diff options
author | Florian Dold <florian@dold.me> | 2021-04-09 16:43:57 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-04-09 16:43:57 +0200 |
commit | f30f923e15adcb7242cfba565cd0c7e1e8666f8e (patch) | |
tree | 3ffbb6fdc4d7d6a8c1e8d9980e81c6bee3d33499 /packages/taler-wallet-cli | |
parent | 15cecf126ad8f2a34ce76a02abfd648433b81cfb (diff) |
fix two bogus test assertions
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts index eb171747f..539203b95 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-merchant-instances.ts @@ -124,11 +124,13 @@ export async function runMerchantInstancesTest(t: GlobalTestState) { const exc = await t.assertThrowsAsync(async () => { console.log("requesting instances with auth", merchantClient.auth); const resp = await merchantClient.getInstances(); - console.log("axios result:", resp); + console.log("instances result:", resp); }); + console.log(exc); + t.assertAxiosError(exc); - t.assertAxiosError(exc.response?.status === 401); + t.assertTrue(exc.response?.status === 401); merchantClient = new MerchantApiClient(merchant.makeInstanceBaseUrl(), { method: "token", @@ -173,7 +175,7 @@ export async function runMerchantInstancesTest(t: GlobalTestState) { }); console.log(exc); t.assertAxiosError(exc); - t.assertDeepEqual(exc.response?.status, 403); + t.assertDeepEqual(exc.response?.status, 401); } } |