diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw/test.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Withdraw/test.ts | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts b/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts index ab3b2e316..e5eaa3c14 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts +++ b/packages/taler-wallet-webextension/src/cta/Withdraw/test.ts @@ -20,6 +20,7 @@ */ import { + AmountString, Amounts, ExchangeEntryStatus, ExchangeListItem, @@ -109,7 +110,7 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForUri, undefined, { - amount: "EUR:2", + amount: "EUR:2" as AmountString, possibleExchanges: [], }, ); @@ -145,7 +146,7 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForUri, undefined, { - amount: "ARS:2", + amount: "ARS:2" as AmountString, possibleExchanges: exchanges, defaultExchangeBaseUrl: exchanges[0].exchangeBaseUrl, }, @@ -154,8 +155,8 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForAmount, undefined, { - amountRaw: "ARS:2", - amountEffective: "ARS:2", + amountRaw: "ARS:2" as AmountString, + amountEffective: "ARS:2" as AmountString, paytoUris: ["payto://"], tosAccepted: true, ageRestrictionOptions: [], @@ -209,7 +210,7 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForUri, undefined, { - amount: "ARS:2", + amount: "ARS:2" as AmountString, possibleExchanges: exchangeWithNewTos, defaultExchangeBaseUrl: exchangeWithNewTos[0].exchangeBaseUrl, }, @@ -218,8 +219,8 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForAmount, undefined, { - amountRaw: "ARS:2", - amountEffective: "ARS:2", + amountRaw: "ARS:2" as AmountString, + amountEffective: "ARS:2" as AmountString, paytoUris: ["payto://"], tosAccepted: false, ageRestrictionOptions: [], @@ -231,7 +232,7 @@ describe("Withdraw CTA states", () => { WalletApiOperation.GetWithdrawalDetailsForUri, undefined, { - amount: "ARS:2", + amount: "ARS:2" as AmountString, possibleExchanges: exchanges, defaultExchangeBaseUrl: exchanges[0].exchangeBaseUrl, }, |