summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/stories.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/stories.test.ts')
-rw-r--r--packages/demobank-ui/src/stories.test.ts12
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/demobank-ui/src/stories.test.ts b/packages/demobank-ui/src/stories.test.ts
index 747bf4083..8171c6d8f 100644
--- a/packages/demobank-ui/src/stories.test.ts
+++ b/packages/demobank-ui/src/stories.test.ts
@@ -30,7 +30,6 @@ 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 { BackendStateProviderTesting } from "./context/backend.js";
import { BankCoreApiProviderTesting } from "./context/config.js";
setupI18n("en", { en: {} });
@@ -57,15 +56,6 @@ function DefaultTestingContext({
}: {
children: ComponentChildren;
}): VNode {
- const ctx1 = create(BackendStateProviderTesting, {
- children,
- state: {
- status: "loggedIn",
- username: "test",
- token: "pwd" as AccessToken,
- isUserAdministrator: false,
- },
- });
const cfg: TalerCorebankApi.Config = {
name: "libeufin-bank",
allow_deletions: true,
@@ -86,7 +76,7 @@ function DefaultTestingContext({
version: "1:0:0",
};
const ctx2 = create(BankCoreApiProviderTesting, {
- children: ctx1,
+ children: [],
state: cfg,
url: "http://localhost",
});