summaryrefslogtreecommitdiff
path: root/packages/bank-ui/src/stories.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bank-ui/src/stories.test.ts')
-rw-r--r--packages/bank-ui/src/stories.test.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/bank-ui/src/stories.test.ts b/packages/bank-ui/src/stories.test.ts
index 8ed00a1e6..2f3988e9a 100644
--- a/packages/bank-ui/src/stories.test.ts
+++ b/packages/bank-ui/src/stories.test.ts
@@ -23,13 +23,13 @@ import {
TalerCorebankApi,
setupI18n,
} from "@gnu-taler/taler-util";
-import { parseGroupImport } from "@gnu-taler/web-util/browser";
+import { BankApiProviderTesting, parseGroupImport } from "@gnu-taler/web-util/browser";
import * as tests from "@gnu-taler/web-util/testing";
import * as components from "./components/index.examples.js";
import * as pages from "./pages/index.stories.js";
import { ComponentChildren, VNode, h as create } from "preact";
-import { BankCoreApiProviderTesting } from "./context/config.js";
+// import { BankCoreApiProviderTesting } from "./context/config.js";
setupI18n("en", { en: {} });
@@ -72,10 +72,9 @@ function DefaultTestingContext(_props: { children: ComponentChildren }): VNode {
default_debit_threshold: "ARS:10" as AmountString,
version: "1:0:0",
};
- const ctx2 = create(BankCoreApiProviderTesting, {
+ const ctx2 = create(BankApiProviderTesting, {
children: [],
- state: cfg,
- url: "http://localhost",
+ value: cfg as any,
});
return ctx2;
}