diff options
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts | 10 | ||||
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts index 6133bcc19..3f7e1a9d1 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-basic.ts @@ -17,7 +17,12 @@ /** * Imports. */ -import { CoreApiResponse } from "@gnu-taler/taler-util"; +import { + ContractTerms, + CoreApiResponse, + getTimestampNow, + timestampTruncateToSecond, +} from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; import { CoinConfig, defaultCoinConfig } from "../harness/denomStructures"; import { @@ -272,10 +277,11 @@ export async function runLibeufinBasicTest(t: GlobalTestState) { console.log("balances", JSON.stringify(bal, undefined, 2)); t.assertAmountEquals(bal.balances[0].available, "EUR:14.7"); - const order = { + const order: Partial<ContractTerms> = { summary: "Buy me!", amount: "EUR:5", fulfillment_url: "taler://fulfillment-success/thx", + wire_transfer_deadline: timestampTruncateToSecond(getTimestampNow()), }; await makeTestPayment(t, { wallet, merchant, order }); diff --git a/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts b/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts index acb74b3d3..c6442a240 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-refund-gone.ts @@ -110,8 +110,8 @@ export async function runRefundGoneTest(t: GlobalTestState) { talerRefundUri: ref.talerRefundUri, }); + console.log("refund response:", rr); t.assertAmountEquals(rr.amountRefundGone, "TESTKUDOS:5"); - console.log(rr); await wallet.runUntilDone(); |