aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-denom-unoffered.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-denom-unoffered.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
index 79269d533..677739627 100644
--- a/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
+++ b/packages/taler-harness/src/integrationtests/test-denom-unoffered.ts
@@ -21,6 +21,7 @@ import {
MerchantApiClient,
PreparePayResultType,
TalerErrorCode,
+ TransactionType,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
@@ -93,7 +94,7 @@ export async function runDenomUnofferedTest(t: GlobalTestState) {
);
const confirmResp = await walletClient.call(WalletApiOperation.ConfirmPay, {
- proposalId: preparePayResult.proposalId,
+ transactionId: preparePayResult.transactionId,
});
const tx = await walletClient.call(WalletApiOperation.GetTransactionById, {
@@ -147,8 +148,12 @@ export async function runDenomUnofferedTest(t: GlobalTestState) {
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
- const txs = await walletClient.call(WalletApiOperation.GetTransactions, {});
+ const txs = await walletClient.call(WalletApiOperation.GetTransactions, {
+ sort: "stable-ascending",
+ });
console.log(JSON.stringify(txs, undefined, 2));
+
+ t.assertDeepEqual(txs.transactions[2].type, TransactionType.DenomLoss);
}
runDenomUnofferedTest.suites = ["wallet"];