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/wallet/Backup.stories.tsx | |
| parent | cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854 (diff) | |
taler-util,wallet-core: make AbsoluteTime opaque
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx')
| -rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx index ddcba6fae..59bcd5ce9 100644 --- a/packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Backup.stories.tsx @@ -26,7 +26,11 @@ import { ShowRecoveryInfo, } from "./BackupPage.js"; import * as tests from "@gnu-taler/web-util/testing"; -import { TalerPreciseTimestamp, TalerProtocolTimestamp } from "@gnu-taler/taler-util"; +import { + AbsoluteTime, + TalerPreciseTimestamp, + TalerProtocolTimestamp, +} from "@gnu-taler/taler-util"; export default { title: "backup", @@ -45,9 +49,7 @@ export const LotOfProviders = tests.createExample(TestedComponent, { ], paymentStatus: { type: ProviderPaymentType.Paid, - paidUntil: { - t_ms: 1656599921000, - }, + paidUntil: AbsoluteTime.fromMilliseconds(1656599921000), }, terms: { annualFee: "ARS:1", @@ -66,9 +68,9 @@ export const LotOfProviders = tests.createExample(TestedComponent, { ], paymentStatus: { type: ProviderPaymentType.Paid, - paidUntil: { - t_ms: addDays(new Date(), 13).getTime(), - }, + paidUntil: AbsoluteTime.fromMilliseconds( + addDays(new Date(), 13).getTime(), + ), }, terms: { annualFee: "ARS:1", @@ -123,9 +125,7 @@ export const LotOfProviders = tests.createExample(TestedComponent, { storageLimitInMegabytes: 16, supportedProtocolVersion: "1", }, - paidUntil: { - t_ms: "never", - }, + paidUntil: AbsoluteTime.never(), }, terms: { annualFee: "KUDOS:0.1", @@ -177,9 +177,7 @@ export const OneProvider = tests.createExample(TestedComponent, { ], paymentStatus: { type: ProviderPaymentType.Paid, - paidUntil: { - t_ms: 1656599921000, - }, + paidUntil: AbsoluteTime.fromMilliseconds(1656599921000), }, terms: { annualFee: "ARS:1", |
