diff options
author | Sebastian <sebasjm@gmail.com> | 2022-08-29 13:23:22 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-08-29 13:23:22 -0300 |
commit | 6610a0b9d7eb9fbec591f052c960f780732bf0e5 (patch) | |
tree | 8509c40bf1682d43bc8324d498cc22a15c81c3eb /packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts | |
parent | a5f052d69c6457ad0289fdcb56398ea1fabedc2a (diff) | |
download | wallet-core-6610a0b9d7eb9fbec591f052c960f780732bf0e5.tar.xz |
add senderWire to the withdrawal group again, group payto to avoid duplication
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts b/packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts index eb9bddbf3..12a13bbdf 100644 --- a/packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts +++ b/packages/taler-wallet-webextension/src/wallet/DepositPage.test.ts @@ -65,7 +65,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:0` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [] }), + listKnownBankAccounts: async () => ({ accounts: {} }), } as Partial<typeof wxApi> as any), ); @@ -92,7 +92,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:1` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [] }), + listKnownBankAccounts: async () => ({ accounts: {} }), } as Partial<typeof wxApi> as any), ); @@ -111,10 +111,10 @@ describe("DepositPage states", () => { await assertNoPendingUpdate(); }); - const ibanPayto = parsePaytoUri("payto://iban/ES8877998399652238")!; - const talerBankPayto = parsePaytoUri( - "payto://x-taler-bank/ES8877998399652238", - )!; + const ibanPayto_str = "payto://iban/ES8877998399652238" + const ibanPayto = { ibanPayto_str: parsePaytoUri(ibanPayto_str)! }; + const talerBankPayto_str = "payto://x-taler-bank/ES8877998399652238" + const talerBankPayto = { talerBankPayto_str: parsePaytoUri(talerBankPayto_str)! }; it("should have status 'ready' but unable to deposit ", async () => { const { getLastResultOrThrow, waitNextUpdate, assertNoPendingUpdate } = @@ -124,7 +124,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:1` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [ibanPayto] }), + listKnownBankAccounts: async () => ({ accounts: ibanPayto }), } as Partial<typeof wxApi> as any), ); @@ -156,7 +156,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:1` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [ibanPayto] }), + listKnownBankAccounts: async () => ({ accounts: ibanPayto }), getFeeForDeposit: withoutFee, } as Partial<typeof wxApi> as any), ); @@ -205,7 +205,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:1` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [ibanPayto] }), + listKnownBankAccounts: async () => ({ accounts: ibanPayto }), getFeeForDeposit: withSomeFee, } as Partial<typeof wxApi> as any), ); @@ -256,7 +256,7 @@ describe("DepositPage states", () => { balances: [{ available: `${currency}:1` }], } as Partial<BalancesResponse>), listKnownBankAccounts: async () => ({ - accounts: [ibanPayto, talerBankPayto], + accounts: { ...ibanPayto, ...talerBankPayto }, }), getFeeForDeposit: freeJustForIBAN, } as Partial<typeof wxApi> as any), @@ -341,7 +341,7 @@ describe("DepositPage states", () => { ({ balances: [{ available: `${currency}:15` }], } as Partial<BalancesResponse>), - listKnownBankAccounts: async () => ({ accounts: [ibanPayto] }), + listKnownBankAccounts: async () => ({ accounts: ibanPayto }), getFeeForDeposit: withSomeFee, } as Partial<typeof wxApi> as any), ); |