diff options
author | Florian Dold <florian@dold.me> | 2023-05-26 13:52:00 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-05-26 13:52:00 +0200 |
commit | 96d9ea3840626f71efe38018b75748d8338565fa (patch) | |
tree | d1f04ecbb58750af79b3d0cb0420ba4fdf6d05a2 /packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx | |
parent | cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854 (diff) | |
download | wallet-core-96d9ea3840626f71efe38018b75748d8338565fa.tar.xz |
taler-util,wallet-core: make AbsoluteTime opaque
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx b/packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx index 00460bc8f..a8f55c512 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx +++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/stories.tsx @@ -19,7 +19,11 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { PreparePayResult, PreparePayResultType } from "@gnu-taler/taler-util"; +import { + AbsoluteTime, + PreparePayResult, + PreparePayResultType, +} from "@gnu-taler/taler-util"; import * as tests from "@gnu-taler/web-util/testing"; import { ReadyView } from "./views.js"; @@ -43,9 +47,9 @@ export const Ready = tests.createExample(ReadyView, { status: PreparePayResultType.PaymentPossible, amountEffective: "ARS:1", } as PreparePayResult, - expiration: { - t_ms: new Date().getTime() + 1000 * 60 * 60, - }, + expiration: AbsoluteTime.fromMilliseconds( + new Date().getTime() + 1000 * 60 * 60, + ), accept: {}, cancel: {}, }); |