diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:47:47 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-21 10:47:47 -0300 |
commit | f470f167e32d8f7775ad994f09afb1d353b0b300 (patch) | |
tree | 3a1f2a040bb09d6639c81436b90b416fb8044f91 /packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx | |
parent | 6dcc488a2c8fd681941e5d3b62bb04af7669888e (diff) | |
download | wallet-core-f470f167e32d8f7775ad994f09afb1d353b0b300.tar.xz |
integrate anastasis to the web-utils testing api
Diffstat (limited to 'packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx index 56c224d34..aaaae25c9 100644 --- a/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx +++ b/packages/anastasis-webui/src/pages/home/PoliciesPayingScreen.stories.tsx @@ -20,8 +20,9 @@ */ import { ReducerState } from "@gnu-taler/anastasis-core"; -import { createExample, reducerStatesExample } from "../../utils/index.js"; +import { reducerStatesExample } from "../../utils/index.js"; import { PoliciesPayingScreen as TestedComponent } from "./PoliciesPayingScreen.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; export default { title: "Policies paying", @@ -35,11 +36,12 @@ export default { }, }; -export const Example = createExample( +export const Example = tests.createExample( TestedComponent, + {}, reducerStatesExample.policyPay, ); -export const WithSomePaymentRequest = createExample(TestedComponent, { +export const WithSomePaymentRequest = tests.createExample(TestedComponent, {}, { ...reducerStatesExample.policyPay, policy_payment_requests: [ { |