diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src')
-rw-r--r-- | packages/merchant-backoffice-ui/src/stories.test.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/merchant-backoffice-ui/src/stories.test.ts b/packages/merchant-backoffice-ui/src/stories.test.ts index e85be31b7..df732895f 100644 --- a/packages/merchant-backoffice-ui/src/stories.test.ts +++ b/packages/merchant-backoffice-ui/src/stories.test.ts @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ import { setupI18n } from "@gnu-taler/taler-util"; -import { parseGroupImport } from "@gnu-taler/web-util/lib/index.browser"; +import { parseGroupImport, tests } 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"; @@ -35,12 +35,7 @@ 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); - // console.log(html) + tests.renderUI(example.render); }); }); }); |