Skip to content

Commit 20bf5ca

Browse files
committed
fix: react test typing
1 parent 1aaae7e commit 20bf5ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react/src/helpers/tasks.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe(`Given the '${useAsyncTask.name}' hook`, () => {
122122
await result.current[0]('one');
123123
});
124124

125-
await waitFor(() => result.current.loading === false);
125+
await waitFor(() => result.current[1].loading === false);
126126

127127
act(() => {
128128
void result.current[0]('two');
@@ -149,7 +149,7 @@ describe(`Given the '${useAsyncTask.name}' hook`, () => {
149149
await result.current[0]('one');
150150
});
151151

152-
await waitFor(() => result.current.loading === false);
152+
await waitFor(() => result.current[1].loading === false);
153153

154154
await act(async () => {
155155
await result.current[0]('two');
@@ -179,7 +179,7 @@ describe(`Given the '${useAsyncTask.name}' hook`, () => {
179179
await result.current[0]('one');
180180
});
181181

182-
await waitFor(() => result.current.loading === false);
182+
await waitFor(() => result.current[1].loading === false);
183183

184184
await act(async () => {
185185
await result.current[0]('two');

0 commit comments

Comments
 (0)