diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-11 18:00:28 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-11 18:00:28 -0300 |
commit | d34eeb5c8c90c7143922b303cf3a7dbc2357246c (patch) | |
tree | b2a04135dec4f01dec21c03e62dee61e5c0ade7c /packages/taler-wallet-webextension/src/cta/Withdraw.test.ts | |
parent | 1ae4a44a3a835cbf19ae4e885f0ca97eb10279b3 (diff) | |
download | wallet-core-d34eeb5c8c90c7143922b303cf3a7dbc2357246c.tar.xz |
using the test to fine tune the withdraw process
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.test.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw.test.ts | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts b/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts index 5a28c4cf5..e26e86445 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts @@ -59,13 +59,6 @@ describe("Withdraw CTA states", () => { expect(status).equals('loading-uri') expect(hook).deep.equals({ "hasError": true, "operational": false, "message": "ERROR_NO-URI-FOR-WITHDRAWAL" }); } - await waitNextUpdate() - { - const { status, hook } = getLastResultOrThrow() - - expect(status).equals('loading-uri') - expect(hook).deep.equals({ "hasError": true, "operational": false, "message": "ERROR_NO-URI-FOR-WITHDRAWAL" }); - } await assertNoPendingUpdate() }); @@ -93,25 +86,6 @@ describe("Withdraw CTA states", () => { const { status, hook } = getLastResultOrThrow() expect(status).equals('loading-exchange') - expect(hook).undefined; - } - - await waitNextUpdate() - - { - const { status, hook } = getLastResultOrThrow() - - expect(status).equals('loading-exchange') - - expect(hook).deep.equals({ "hasError": true, "operational": false, "message": "ERROR_NO-DEFAULT-EXCHANGE" }); - } - - await waitNextUpdate() - - { - const { status, hook } = getLastResultOrThrow() - - expect(status).equals('loading-exchange') expect(hook).deep.equals({ "hasError": true, "operational": false, "message": "ERROR_NO-DEFAULT-EXCHANGE" }); } |