File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ export const withPromiseFn = (Async, abortCtrl) => () => {
283
283
expect ( promiseFn ) . toHaveBeenCalledTimes ( 1 )
284
284
fireEvent . click ( getByText ( "reload" ) )
285
285
expect ( promiseFn ) . toHaveBeenCalledTimes ( 2 )
286
- expect ( abortCtrl . abort ) . toHaveBeenCalledTimes ( 1 )
286
+ expect ( abortCtrl . abort ) . toHaveBeenCalled ( )
287
287
} )
288
288
289
289
test ( "re-runs the promise with new props when the value of `watch` changes" , ( ) => {
@@ -404,7 +404,7 @@ export const withPromiseFn = (Async, abortCtrl) => () => {
404
404
rerender ( < Async onResolve = { onResolve } /> )
405
405
await sleep ( 10 )
406
406
expect ( onResolve ) . not . toHaveBeenCalled ( )
407
- expect ( abortCtrl . abort ) . toHaveBeenCalledTimes ( 1 )
407
+ expect ( abortCtrl . abort ) . toHaveBeenCalled ( )
408
408
} )
409
409
410
410
test ( "does not run `promiseFn` on mount when `initialValue` is provided" , async ( ) => {
You can’t perform that action at this time.
0 commit comments