diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-15 17:11:24 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-15 17:11:24 -0300 |
commit | f93bd51499ed34844b666bf6d333227adf4368bf (patch) | |
tree | ed3cf0c38b7db54276436d1743a6085c94f71977 /packages/web-util | |
parent | 8d8d71807df6b775e5b0335eb1b2526a56d42ac6 (diff) |
wxApi from context and using the new testing sdk
Diffstat (limited to 'packages/web-util')
-rw-r--r-- | packages/web-util/src/tests/hook.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<T extends object, PropsType>( hookFunction: (p: PropsType) => RecursiveState<T>, props: PropsType, - checks: Array<(state: T) => void>, + checks: Array<(state: Exclude<T, VoidFunction>) => void>, Context?: ({ children }: { children: any }) => VNode | null, ): Promise<HookTestResult> { const { pullLastResultOrThrow, waitForStateUpdate, assertNoPendingUpdate } = |