From f93bd51499ed34844b666bf6d333227adf4368bf Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 15 Dec 2022 17:11:24 -0300 Subject: wxApi from context and using the new testing sdk --- packages/web-util/src/tests/hook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/web-util/src') diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index f5bebbd6d..a4938f3f9 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -246,7 +246,7 @@ interface HookTestResultError { export async function hookBehaveLikeThis( hookFunction: (p: PropsType) => RecursiveState, props: PropsType, - checks: Array<(state: T) => void>, + checks: Array<(state: Exclude) => void>, Context?: ({ children }: { children: any }) => VNode | null, ): Promise { const { pullLastResultOrThrow, waitForStateUpdate, assertNoPendingUpdate } = -- cgit v1.2.3