From 8aa9ce6d20b41b7eb9b438a56ccd34cb0da35f80 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 21 Mar 2024 12:11:31 -0300 Subject: wip --- packages/bank-ui/src/stories.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'packages/bank-ui/src/stories.test.ts') 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; } -- cgit v1.2.3