From e21c1b31928cd6bfe90150ea2de19799b6359c40 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 23 Mar 2022 16:20:39 -0300 Subject: splitted rollup config for testing and first component state unit test --- .../taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts') diff --git a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts index 99934ef0b..95c77cd76 100644 --- a/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts +++ b/packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see */ import { useTalerActionURL } from "./useTalerActionURL" -import { justBrowser_it, mountBrowser } from "../test-utils"; +import { mountHook } from "../test-utils"; import { IoCProviderForTesting } from "../context/iocContext"; import { h, VNode } from "preact"; import { act } from "preact/test-utils"; @@ -22,7 +22,7 @@ import { act } from "preact/test-utils"; describe('useTalerActionURL hook', () => { // eslint-disable-next-line jest/expect-expect - justBrowser_it('should be set url to undefined when dismiss', async () => { + it('should be set url to undefined when dismiss', async () => { const ctx = ({ children }: { children: any }): VNode => { return h(IoCProviderForTesting, { @@ -32,7 +32,7 @@ describe('useTalerActionURL hook', () => { }) } - const { result, waitNextUpdate } = mountBrowser(useTalerActionURL, ctx) + const { result, waitNextUpdate } = mountHook(useTalerActionURL, ctx) { const [url] = result.current! -- cgit v1.2.3