diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-20 17:45:24 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-20 17:45:24 -0300 |
commit | c59f9a2556731ad95ab8bd7eefe7fa8a41629834 (patch) | |
tree | 5cb60195d66cebbee0ba99e05eafe22f369a46a8 /packages/merchant-backoffice-ui/src/stories.test.ts | |
parent | 382e66b179d6fda2598936196b2ae1b97bfab8ef (diff) | |
download | wallet-core-c59f9a2556731ad95ab8bd7eefe7fa8a41629834.tar.xz |
use translation context from web-utils, don't use match react-router since is broken
Diffstat (limited to 'packages/merchant-backoffice-ui/src/stories.test.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/stories.test.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/merchant-backoffice-ui/src/stories.test.ts b/packages/merchant-backoffice-ui/src/stories.test.ts index 6a401dd25..e85be31b7 100644 --- a/packages/merchant-backoffice-ui/src/stories.test.ts +++ b/packages/merchant-backoffice-ui/src/stories.test.ts @@ -20,15 +20,13 @@ */ import { setupI18n } from "@gnu-taler/taler-util"; import { parseGroupImport } from "@gnu-taler/web-util/lib/index.browser"; - +import { h as create } from "preact"; +import { render as renderToString } from "preact-render-to-string"; import * as admin from "./paths/admin/index.stories.js"; import * as instance from "./paths/instance/index.stories.js"; setupI18n("en", { en: {} }); -import { h as create } from "preact" -import { render as renderToString } from "preact-render-to-string"; - describe("All the examples:", () => { const cms = parseGroupImport({ admin, instance }); cms.forEach((group) => { @@ -37,8 +35,11 @@ describe("All the examples:", () => { describe(`Component: ${component.name}`, () => { component.examples.forEach((example) => { it(`should render example: ${example.name}`, () => { - const vdom = create(example.render.component, example.render.props) - const html = renderToString(vdom) + const vdom = create( + example.render.component, + example.render.props, + ); + const html = renderToString(vdom); // console.log(html) }); }); |