File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react/src/helpers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments