aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-02-28 22:41:41 -0300
committerSebastian <sebasjm@gmail.com>2024-02-28 22:41:41 -0300
commit74b9ee559fc57f48a591140eb342cc8e2bbd3dd3 (patch)
treec26fb1cf465edc41ba625ce790eed2c71f308f77 /packages/taler-wallet-webextension/src/cta
parent83c5a50f6c95a9ddde0db6ae1eeb6039550375e5 (diff)
downloadwallet-core-74b9ee559fc57f48a591140eb342cc8e2bbd3dd3.tar.xz
get activity
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Payment/test.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Payment/test.ts b/packages/taler-wallet-webextension/src/cta/Payment/test.ts
index 5e009b3de..5847cc833 100644
--- a/packages/taler-wallet-webextension/src/cta/Payment/test.ts
+++ b/packages/taler-wallet-webextension/src/cta/Payment/test.ts
@@ -29,6 +29,7 @@ import {
PreparePayResultPaymentPossible,
PreparePayResultType,
ScopeType,
+ TransactionMajorState,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { expect } from "chai";
@@ -549,8 +550,13 @@ describe("Payment CTA states", () => {
// expect(r.totalFees).deep.equal(Amounts.parseOrThrow("USD:1"));
expect(state.payHandler.onClick).not.undefined;
- handler.notifyEventFromWallet(
- NotificationType.TransactionStateTransition,
+ handler.notifyEventFromWallet({
+ type: NotificationType.TransactionStateTransition,
+ newTxState: {} as any,
+ oldTxState: {} as any,
+ transactionId: "123",
+ }
+
);
},
(state) => {