From 9b04d8bf3581d162cbd631892ca115df811c46f8 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 9 Jan 2023 08:38:48 -0300 Subject: fix #7152 --- packages/taler-wallet-webextension/src/test-utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-webextension/src/test-utils.ts') diff --git a/packages/taler-wallet-webextension/src/test-utils.ts b/packages/taler-wallet-webextension/src/test-utils.ts index 379513782..7e7ddd88d 100644 --- a/packages/taler-wallet-webextension/src/test-utils.ts +++ b/packages/taler-wallet-webextension/src/test-utils.ts @@ -32,6 +32,7 @@ import { } from "preact"; import { render as renderToString } from "preact-render-to-string"; import { BackendProvider } from "./context/backend.js"; +import { TranslationProvider } from "./context/translation.js"; import { BackgroundApiClient, wxApi } from "./wxApi.js"; // When doing tests we want the requestAnimationFrame to be as fast as possible. @@ -359,10 +360,12 @@ export function createWalletApiMock(): { }; function TestingContext({ - children, + children: _cs, }: { children: ComponentChildren; }): VNode { + let children = _cs; + children = create(TranslationProvider, { children }, children); return create( BackendProvider, { -- cgit v1.2.3