diff options
author | Florian Dold <florian@dold.me> | 2023-11-28 19:17:38 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-11-28 19:17:38 +0100 |
commit | 27578b07404370351b5b511b3d3af0e8b2c77223 (patch) | |
tree | 7107dfb90e6424411da61e2228c1cfd17e0e2012 /packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts | |
parent | 629cb08490adf1be26a811d743d8152de48a3c2a (diff) | |
download | wallet-core-27578b07404370351b5b511b3d3af0e8b2c77223.tar.xz |
wallet-core: only specify transfer amount for currency conversion withdrawals
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts index 08ae38bf2..69c6427ca 100644 --- a/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts +++ b/packages/taler-harness/src/integrationtests/test-withdrawal-conversion.ts @@ -196,10 +196,9 @@ export async function runWithdrawalConversionTest(t: GlobalTestState) { console.log(`withdrawal details: ${j2s(infoRes)}`); - t.assertAmountEquals( - infoRes.withdrawalAccountList[0].transferAmount, - "FOO:123", - ); + const checkTransferAmount = infoRes.withdrawalAccountList[0].transferAmount; + t.assertTrue(checkTransferAmount != null); + t.assertAmountEquals(checkTransferAmount, "FOO:123"); const tStart = AbsoluteTime.now(); @@ -217,10 +216,10 @@ export async function runWithdrawalConversionTest(t: GlobalTestState) { logger.info("AcceptManualWithdrawal finished"); logger.info(`result: ${j2s(wres)}`); - t.assertAmountEquals( - wres.withdrawalAccountsList[0].transferAmount, - "FOO:123", - ); + const acceptedTransferAmount = wres.withdrawalAccountsList[0].transferAmount; + t.assertTrue(acceptedTransferAmount != null); + + t.assertAmountEquals(acceptedTransferAmount, "FOO:123"); const txInfo = await walletClient.call( WalletApiOperation.GetTransactionById, |