diff options
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), ); |