diff options
| author | Florian Dold <florian@dold.me> | 2023-05-24 14:46:03 +0200 | 
|---|---|---|
| committer | Florian Dold <florian@dold.me> | 2023-05-24 14:46:03 +0200 | 
| commit | a2ef2e391a8f030857d0f9cd56c6157cffb33659 (patch) | |
| tree | 7da5030d2695b4c6ba24b007198726bea6016b13 /packages/taler-harness/src/integrationtests | |
| parent | f475f98f86d03e808d2c88c13eafa712c2013fe3 (diff) | |
wallet-core: remove legacy non-DD37 tx status fields
Diffstat (limited to 'packages/taler-harness/src/integrationtests')
3 files changed, 6 insertions, 4 deletions
| diff --git a/packages/taler-harness/src/integrationtests/test-payment-zero.ts b/packages/taler-harness/src/integrationtests/test-payment-zero.ts index 6c28da30c..264cffd06 100644 --- a/packages/taler-harness/src/integrationtests/test-payment-zero.ts +++ b/packages/taler-harness/src/integrationtests/test-payment-zero.ts @@ -24,6 +24,7 @@ import {    withdrawViaBank,    makeTestPayment,  } from "../harness/helpers.js"; +import { TransactionMajorState } from "@gnu-taler/taler-util";  /**   * Run test for a payment for a "free" order with @@ -61,7 +62,7 @@ export async function runPaymentZeroTest(t: GlobalTestState) {    );    for (const tr of transactions.transactions) { -    t.assertDeepEqual(tr.pending, false); +    t.assertDeepEqual(tr.txState.major, TransactionMajorState.Done);    }  } diff --git a/packages/taler-harness/src/integrationtests/test-timetravel-withdraw.ts b/packages/taler-harness/src/integrationtests/test-timetravel-withdraw.ts index 9335af9f5..ca3e67647 100644 --- a/packages/taler-harness/src/integrationtests/test-timetravel-withdraw.ts +++ b/packages/taler-harness/src/integrationtests/test-timetravel-withdraw.ts @@ -17,7 +17,7 @@  /**   * Imports.   */ -import { Duration, TransactionType } from "@gnu-taler/taler-util"; +import { Duration, TransactionMajorState, TransactionType } from "@gnu-taler/taler-util";  import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";  import { GlobalTestState } from "../harness/harness.js";  import { @@ -83,7 +83,7 @@ export async function runTimetravelWithdrawTest(t: GlobalTestState) {      t.assertDeepEqual(types, ["withdrawal", "withdrawal"]);      const wtrans = transactions.transactions[1];      t.assertTrue(wtrans.type === TransactionType.Withdrawal); -    t.assertTrue(wtrans.pending); +    t.assertTrue(wtrans.txState.major === TransactionMajorState.Pending);    }    // Now we also let the wallet time travel diff --git a/packages/taler-harness/src/integrationtests/test-tipping.ts b/packages/taler-harness/src/integrationtests/test-tipping.ts index bbf729420..ff6fc9ceb 100644 --- a/packages/taler-harness/src/integrationtests/test-tipping.ts +++ b/packages/taler-harness/src/integrationtests/test-tipping.ts @@ -29,6 +29,7 @@ import {    getWireMethodForTest,  } from "../harness/harness.js";  import { createSimpleTestkudosEnvironment } from "../harness/helpers.js"; +import { TransactionMajorState } from "@gnu-taler/taler-util";  /**   * Run test for basic, bank-integrated withdrawal. @@ -127,7 +128,7 @@ export async function runTippingTest(t: GlobalTestState) {      console.log("Transactions:", JSON.stringify(txns, undefined, 2));      t.assertDeepEqual(txns.transactions[0].type, "tip"); -    t.assertDeepEqual(txns.transactions[0].pending, false); +    t.assertDeepEqual(txns.transactions[0].txState.major, TransactionMajorState.Done);      t.assertAmountEquals(        txns.transactions[0].amountEffective,        "TESTKUDOS:4.85", | 
