diff options
| author | Sebastian <sebasjm@gmail.com> | 2022-04-25 23:07:31 -0300 |
|---|---|---|
| committer | Sebastian <sebasjm@gmail.com> | 2022-04-26 11:48:29 -0300 |
| commit | 41ab855736815d33f5fdbebc896b167c71482eee (patch) | |
| tree | b1c61f37f107f8118215483c4945bc942ee45b7a /packages/taler-wallet-webextension/src/cta/Withdraw.test.ts | |
| parent | 65e6a8caa0de98632ad99cca35bf98bffe663dff (diff) | |
remove old async hook
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.test.ts')
| -rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw.test.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts b/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts index 0301e321c..7f05870c1 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.test.ts @@ -58,7 +58,10 @@ describe("Withdraw CTA states", () => { const { status, hook } = getLastResultOrThrow() expect(status).equals('loading-uri') - expect(hook).deep.equals({ "hasError": true, "operational": false, "message": "ERROR_NO-URI-FOR-WITHDRAWAL" }); + if (!hook) expect.fail(); + if (!hook.hasError) expect.fail(); + if (hook.operational) expect.fail(); + expect(hook.message).eq("ERROR_NO-URI-FOR-WITHDRAWAL"); } await assertNoPendingUpdate() |
