diff options
author | Florian Dold <florian@dold.me> | 2022-03-18 15:32:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-03-21 19:20:48 +0100 |
commit | f8d12f7b0d4af1b1769b89e80c87f9c169678564 (patch) | |
tree | 2478696c7bc1efc6d090b93aa340de542a7dccd9 /packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx | |
parent | 32cd54e11d80bde0274b3c0238f8f5bd00ff83cb (diff) | |
download | wallet-core-f8d12f7b0d4af1b1769b89e80c87f9c169678564.tar.xz |
wallet: t_s/d_us migration
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx index 7b6ac1fdc..f02938420 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx @@ -21,6 +21,7 @@ import { PaymentStatus, + TalerProtocolTimestamp, TransactionCommon, TransactionDeposit, TransactionPayment, @@ -53,9 +54,7 @@ const commonTransaction = { amountRaw: "KUDOS:11", amountEffective: "KUDOS:9.2", pending: false, - timestamp: { - t_ms: new Date().getTime(), - }, + timestamp: TalerProtocolTimestamp.now(), transactionId: "12", } as TransactionCommon; @@ -144,18 +143,14 @@ export const Withdraw = createExample(TestedComponent, { export const WithdrawOneMinuteAgo = createExample(TestedComponent, { transaction: { ...exampleData.withdraw, - timestamp: { - t_ms: new Date().getTime() - 60 * 1000, - }, + timestamp: TalerProtocolTimestamp.fromSeconds(new Date().getTime() - 60), }, }); export const WithdrawOneMinuteAgoAndPending = createExample(TestedComponent, { transaction: { ...exampleData.withdraw, - timestamp: { - t_ms: new Date().getTime() - 60 * 1000, - }, + timestamp: TalerProtocolTimestamp.fromSeconds(new Date().getTime() - 60), pending: true, }, }); |