diff options
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-wallettesting.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-wallettesting.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallettesting.ts b/packages/taler-harness/src/integrationtests/test-wallettesting.ts index e5191aa5b..69637b875 100644 --- a/packages/taler-harness/src/integrationtests/test-wallettesting.ts +++ b/packages/taler-harness/src/integrationtests/test-wallettesting.ts @@ -22,7 +22,7 @@ /** * Imports. */ -import { Amounts, CoinStatus } from "@gnu-taler/taler-util"; +import { AmountString, Amounts, CoinStatus } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures.js"; import { @@ -118,8 +118,8 @@ export async function runWallettestingTest(t: GlobalTestState) { const { wallet, bank, exchange, merchant } = await createMyEnvironment(t); await wallet.client.call(WalletApiOperation.RunIntegrationTest, { - amountToSpend: "TESTKUDOS:5", - amountToWithdraw: "TESTKUDOS:10", + amountToSpend: "TESTKUDOS:5" as AmountString, + amountToWithdraw: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: bank.corebankApiBaseUrl, exchangeBaseUrl: exchange.baseUrl, merchantAuthToken: merchantAuthToken, @@ -142,7 +142,7 @@ export async function runWallettestingTest(t: GlobalTestState) { wallet.deleteDatabase(); await wallet.client.call(WalletApiOperation.WithdrawTestBalance, { - amount: "TESTKUDOS:10", + amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: bank.corebankApiBaseUrl, exchangeBaseUrl: exchange.baseUrl, }); @@ -150,7 +150,7 @@ export async function runWallettestingTest(t: GlobalTestState) { await wallet.runUntilDone(); await wallet.client.call(WalletApiOperation.TestPay, { - amount: "TESTKUDOS:5", + amount: "TESTKUDOS:5" as AmountString, merchantAuthToken: merchantAuthToken, merchantBaseUrl: merchant.makeInstanceBaseUrl(), summary: "foo", @@ -167,7 +167,7 @@ export async function runWallettestingTest(t: GlobalTestState) { wallet.deleteDatabase(); await wallet.client.call(WalletApiOperation.WithdrawTestBalance, { - amount: "TESTKUDOS:10", + amount: "TESTKUDOS:10" as AmountString, corebankApiBaseUrl: bank.corebankApiBaseUrl, exchangeBaseUrl: exchange.baseUrl, }); @@ -203,7 +203,7 @@ export async function runWallettestingTest(t: GlobalTestState) { // to pay. await t.assertThrowsAsync(async () => { await wallet.client.call(WalletApiOperation.TestPay, { - amount: "TESTKUDOS:5", + amount: "TESTKUDOS:5" as AmountString, merchantAuthToken: merchantAuthToken, merchantBaseUrl: merchant.makeInstanceBaseUrl(), summary: "foo", @@ -218,7 +218,7 @@ export async function runWallettestingTest(t: GlobalTestState) { }); await wallet.client.call(WalletApiOperation.TestPay, { - amount: "TESTKUDOS:5", + amount: "TESTKUDOS:5" as AmountString, merchantAuthToken: merchantAuthToken, merchantBaseUrl: merchant.makeInstanceBaseUrl(), summary: "foo", |