From 4a781bd0dd8828ce152f6ab2c3f1bbd6b5e826f7 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Jan 2023 20:20:09 -0300 Subject: fix #7153: more error handling if handler do not trap error then fail at compile time, all safe handlers push alert on error errors are typed so they render good information --- packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx index 7e52d4270..4e05e1b59 100644 --- a/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Welcome.stories.tsx @@ -19,7 +19,7 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { createExample } from "../test-utils.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; import { View as TestedComponent } from "./Welcome.js"; export default { @@ -27,7 +27,7 @@ export default { component: TestedComponent, }; -export const Normal = createExample(TestedComponent, { +export const Normal = tests.createExample(TestedComponent, { permissionToggle: { value: true, button: {} }, diagnostics: { errors: [], @@ -38,11 +38,11 @@ export const Normal = createExample(TestedComponent, { }, }); -export const TimedoutDiagnostics = createExample(TestedComponent, { +export const TimedoutDiagnostics = tests.createExample(TestedComponent, { timedOut: true, permissionToggle: { value: true, button: {} }, }); -export const RunningDiagnostics = createExample(TestedComponent, { +export const RunningDiagnostics = tests.createExample(TestedComponent, { permissionToggle: { value: true, button: {} }, }); -- cgit v1.2.3