diff options
author | Sebastian <sebasjm@gmail.com> | 2024-01-12 11:25:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-01-12 11:25:38 -0300 |
commit | 23a075a44e14a7b6e151857aa4c1ba0e298036c2 (patch) | |
tree | 2539ed548ca7784e632529165bf5f38df0cc9f72 /packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx | |
parent | 82d4ed90caa4a6ea3bdda1fb80ccecf3dc3637f9 (diff) | |
download | wallet-core-23a075a44e14a7b6e151857aa4c1ba0e298036c2.tar.xz |
making test passed
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx index dc073a5f5..f985e6ff5 100644 --- a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx +++ b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.stories.tsx @@ -26,13 +26,21 @@ import { import * as tests from "@gnu-taler/web-util/testing"; import { getEventsFromAmlHistory } from "./CaseDetails.js"; import { AbsoluteTime, Duration } from "@gnu-taler/taler-util"; +import { InternationalizationAPI } from "@gnu-taler/web-util/browser"; export default { title: "show consolidated", }; +const nullTranslator: InternationalizationAPI = { + str: (str: any) => str, + singular: (str: any) => str, + translate: (str: any) => str, + Translate: (str: any) => str, +} + export const WithEmptyHistory = tests.createExample(TestedComponent, { - history: getEventsFromAmlHistory([], []), + history: getEventsFromAmlHistory([], [], nullTranslator), until: AbsoluteTime.now() }); @@ -101,7 +109,7 @@ export const WithSomeEvents = tests.createExample(TestedComponent, { attributes: { email: "sebasjm@qwdde.com" } - }]), + }], nullTranslator), until: AbsoluteTime.now() }); |