diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:20:09 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-09 20:20:09 -0300 |
commit | 4a781bd0dd8828ce152f6ab2c3f1bbd6b5e826f7 (patch) | |
tree | 5c16976f99eb973ff62d78ed64107ca01df57b99 /packages/taler-wallet-webextension/src/popup/Balance.stories.tsx | |
parent | 8a70edb2f8e235c3462127b0aa4e1b65aa1aee0b (diff) | |
download | wallet-core-4a781bd0dd8828ce152f6ab2c3f1bbd6b5e826f7.tar.xz |
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
Diffstat (limited to 'packages/taler-wallet-webextension/src/popup/Balance.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/popup/Balance.stories.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx b/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx index 8f3762c29..0fe9e7b49 100644 --- a/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx +++ b/packages/taler-wallet-webextension/src/popup/Balance.stories.tsx @@ -19,19 +19,19 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { createExample } from "../test-utils.js"; +import { tests } from "@gnu-taler/web-util/lib/index.browser"; import { BalanceView as TestedComponent } from "./BalancePage.js"; export default { title: "balance", }; -export const EmptyBalance = createExample(TestedComponent, { +export const EmptyBalance = tests.createExample(TestedComponent, { balances: [], goToWalletManualWithdraw: {}, }); -export const SomeCoins = createExample(TestedComponent, { +export const SomeCoins = tests.createExample(TestedComponent, { balances: [ { available: "USD:10.5", @@ -45,7 +45,7 @@ export const SomeCoins = createExample(TestedComponent, { goToWalletManualWithdraw: {}, }); -export const SomeCoinsInTreeCurrencies = createExample(TestedComponent, { +export const SomeCoinsInTreeCurrencies = tests.createExample(TestedComponent, { balances: [ { available: "EUR:1", @@ -73,7 +73,7 @@ export const SomeCoinsInTreeCurrencies = createExample(TestedComponent, { addAction: {}, }); -export const NoCoinsInTreeCurrencies = createExample(TestedComponent, { +export const NoCoinsInTreeCurrencies = tests.createExample(TestedComponent, { balances: [ { available: "EUR:3", @@ -101,7 +101,7 @@ export const NoCoinsInTreeCurrencies = createExample(TestedComponent, { addAction: {}, }); -export const SomeCoinsInFiveCurrencies = createExample(TestedComponent, { +export const SomeCoinsInFiveCurrencies = tests.createExample(TestedComponent, { balances: [ { available: "USD:0", |