diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-22 14:47:50 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-22 14:47:50 -0300 |
commit | 5e160a2d4d1d77c87600f28f806bc94c086267c7 (patch) | |
tree | ec8475a39d7aa4565b490e259d787b195fb98bb3 /packages/taler-harness/src/integrationtests/test-forced-selection.ts | |
parent | 2005273d1286819e68d3ea7a3290f8c357be5e40 (diff) | |
download | wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.gz wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.tar.bz2 wallet-core-5e160a2d4d1d77c87600f28f806bc94c086267c7.zip |
update the amountString definitionv0.9.3-dev.34
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-forced-selection.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-forced-selection.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-forced-selection.ts b/packages/taler-harness/src/integrationtests/test-forced-selection.ts index 917ad2025..752810703 100644 --- a/packages/taler-harness/src/integrationtests/test-forced-selection.ts +++ b/packages/taler-harness/src/integrationtests/test-forced-selection.ts @@ -17,7 +17,7 @@ /** * Imports. */ -import { j2s } from "@gnu-taler/taler-util"; +import { AmountString, j2s } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { GlobalTestState } from "../harness/harness.js"; import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js"; @@ -37,12 +37,12 @@ export async function runForcedSelectionTest(t: GlobalTestState) { await walletClient.call(WalletApiOperation.WithdrawTestBalance, { exchangeBaseUrl: exchange.baseUrl, - amount: "TESTKUDOS:10", + amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: bank.corebankApiBaseUrl, forcedDenomSel: { denoms: [ { - value: "TESTKUDOS:2", + value: "TESTKUDOS:2" as AmountString, count: 3, }, ], @@ -56,22 +56,22 @@ export async function runForcedSelectionTest(t: GlobalTestState) { t.assertDeepEqual(coinDump.coins.length, 3); const payResp = await walletClient.call(WalletApiOperation.TestPay, { - amount: "TESTKUDOS:3", + amount: "TESTKUDOS:3" as AmountString, merchantBaseUrl: merchant.makeInstanceBaseUrl(), summary: "bla", forcedCoinSel: { coins: [ { - value: "TESTKUDOS:2", - contribution: "TESTKUDOS:1", + value: "TESTKUDOS:2" as AmountString, + contribution: "TESTKUDOS:1" as AmountString, }, { - value: "TESTKUDOS:2", - contribution: "TESTKUDOS:1", + value: "TESTKUDOS:2" as AmountString, + contribution: "TESTKUDOS:1" as AmountString, }, { - value: "TESTKUDOS:2", - contribution: "TESTKUDOS:1", + value: "TESTKUDOS:2" as AmountString, + contribution: "TESTKUDOS:1" as AmountString, }, ], }, |