diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/Reward/test.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/Reward/test.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Reward/test.ts b/packages/taler-wallet-webextension/src/cta/Reward/test.ts index 6d7bad0c8..0e378f366 100644 --- a/packages/taler-wallet-webextension/src/cta/Reward/test.ts +++ b/packages/taler-wallet-webextension/src/cta/Reward/test.ts @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { Amounts } from "@gnu-taler/taler-util"; +import { AmountString, Amounts } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { expect } from "chai"; import * as tests from "@gnu-taler/web-util/testing"; @@ -66,13 +66,13 @@ describe("Tip CTA states", () => { accepted: false, exchangeBaseUrl: "exchange url", merchantBaseUrl: "merchant url", - rewardAmountEffective: "EUR:1", + rewardAmountEffective: "EUR:1" as AmountString, walletRewardId: "tip_id", transactionId: "txn:tip:ABC1234", expirationTimestamp: { t_s: 1, }, - rewardAmountRaw: "", + rewardAmountRaw: "EUR:0" as AmountString, }); const props: Props = { @@ -110,13 +110,13 @@ describe("Tip CTA states", () => { accepted: true, exchangeBaseUrl: "exchange url", merchantBaseUrl: "merchant url", - rewardAmountEffective: "EUR:1", + rewardAmountEffective: "EUR:1" as AmountString, walletRewardId: "tip_id", transactionId: "txn:tip:ABC1234", expirationTimestamp: { t_s: 1, }, - rewardAmountRaw: "", + rewardAmountRaw: "EUR:0" as AmountString, }, ); }, @@ -140,14 +140,14 @@ describe("Tip CTA states", () => { handler.addWalletCallResponse(WalletApiOperation.PrepareReward, undefined, { exchangeBaseUrl: "exchange url", merchantBaseUrl: "merchant url", - rewardAmountEffective: "EUR:1", + rewardAmountEffective: "EUR:1" as AmountString, walletRewardId: "tip_id", transactionId: "txn:tip:ABC1234", accepted: false, expirationTimestamp: { t_s: 1, }, - rewardAmountRaw: "", + rewardAmountRaw: "EUR:0" as AmountString, }); const props: Props = { @@ -188,13 +188,13 @@ describe("Tip CTA states", () => { accepted: true, exchangeBaseUrl: "exchange url", merchantBaseUrl: "merchant url", - rewardAmountEffective: "EUR:1", + rewardAmountEffective: "EUR:1" as AmountString, walletRewardId: "tip_id", transactionId: "txn:tip:ABC1234", expirationTimestamp: { t_s: 1, }, - rewardAmountRaw: "", + rewardAmountRaw: "EUR:0" as AmountString, }); const props: Props = { |