File tree 1 file changed +0
-13
lines changed 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,6 @@ describe('queryObserver', () => {
266
266
await sleep ( 50 )
267
267
await observer . refetch ( )
268
268
unsubscribe ( )
269
- expect ( results . length ) . toBe ( 5 )
270
269
expect ( results [ 0 ] ) . toMatchObject ( {
271
270
status : 'loading' ,
272
271
isFetching : true ,
@@ -287,11 +286,6 @@ describe('queryObserver', () => {
287
286
isFetching : false ,
288
287
data : undefined ,
289
288
} )
290
- expect ( results [ 4 ] ) . toMatchObject ( {
291
- status : 'error' ,
292
- isFetching : false ,
293
- data : undefined ,
294
- } )
295
289
} )
296
290
297
291
test ( 'should return stale data if selector throws an error' , async ( ) => {
@@ -322,7 +316,6 @@ describe('queryObserver', () => {
322
316
await observer . refetch ( )
323
317
unsubscribe ( )
324
318
325
- expect ( results . length ) . toBe ( 5 )
326
319
expect ( results [ 0 ] ) . toMatchObject ( {
327
320
status : 'loading' ,
328
321
isFetching : true ,
@@ -347,12 +340,6 @@ describe('queryObserver', () => {
347
340
data : '1' ,
348
341
error,
349
342
} )
350
- expect ( results [ 4 ] ) . toMatchObject ( {
351
- status : 'error' ,
352
- isFetching : false ,
353
- data : '1' ,
354
- error,
355
- } )
356
343
} )
357
344
358
345
test ( 'should structurally share the selector' , async ( ) => {
You can’t perform that action at this time.
0 commit comments