diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-23 16:20:39 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-23 16:20:39 -0300 |
commit | e21c1b31928cd6bfe90150ea2de19799b6359c40 (patch) | |
tree | 10558ee2b86d5ac01de0995bfe12bdb7da44edde /packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts | |
parent | 136c39ba9fb86080beaa27cd9e0c4d5086a2d691 (diff) | |
download | wallet-core-e21c1b31928cd6bfe90150ea2de19799b6359c40.tar.xz |
splitted rollup config for testing and first component state unit test
Diffstat (limited to 'packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/hooks/useTalerActionURL.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 <http://www.gnu.org/licenses/> */ 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! |