@@ -19,7 +19,7 @@ describe('InfiniteQueryBehavior', () => {
19
19
vi . useRealTimers ( )
20
20
} )
21
21
22
- test ( 'InfiniteQueryBehavior should throw an error if the queryFn is not defined' , async ( ) => {
22
+ test ( 'should throw an error if the queryFn is not defined' , async ( ) => {
23
23
const key = queryKey ( )
24
24
25
25
const observer = new InfiniteQueryObserver ( queryClient , {
@@ -48,7 +48,7 @@ describe('InfiniteQueryBehavior', () => {
48
48
unsubscribe ( )
49
49
} )
50
50
51
- test ( 'InfiniteQueryBehavior should apply the maxPages option to limit the number of pages' , async ( ) => {
51
+ test ( 'should apply the maxPages option to limit the number of pages' , async ( ) => {
52
52
const key = queryKey ( )
53
53
let abortSignal : AbortSignal | null = null
54
54
@@ -197,7 +197,7 @@ describe('InfiniteQueryBehavior', () => {
197
197
unsubscribe ( )
198
198
} )
199
199
200
- test ( 'InfiniteQueryBehavior should support query cancellation' , async ( ) => {
200
+ test ( 'should support query cancellation' , async ( ) => {
201
201
const key = queryKey ( )
202
202
let abortSignal : AbortSignal | null = null
203
203
@@ -250,7 +250,7 @@ describe('InfiniteQueryBehavior', () => {
250
250
unsubscribe ( )
251
251
} )
252
252
253
- test ( 'InfiniteQueryBehavior should not refetch pages if the query is cancelled' , async ( ) => {
253
+ test ( 'should not refetch pages if the query is cancelled' , async ( ) => {
254
254
const key = queryKey ( )
255
255
let abortSignal : AbortSignal | null = null
256
256
@@ -334,7 +334,7 @@ describe('InfiniteQueryBehavior', () => {
334
334
unsubscribe ( )
335
335
} )
336
336
337
- test ( 'InfiniteQueryBehavior should not enter an infinite loop when a page errors while retry is on #8046' , async ( ) => {
337
+ test ( 'should not enter an infinite loop when a page errors while retry is on #8046' , async ( ) => {
338
338
let errorCount = 0
339
339
const key = queryKey ( )
340
340
@@ -436,7 +436,7 @@ describe('InfiniteQueryBehavior', () => {
436
436
unsubscribe ( )
437
437
} )
438
438
439
- test ( 'InfiniteQueryBehavior should not fetch next page when getNextPageParam returns null' , async ( ) => {
439
+ test ( 'should not fetch next page when getNextPageParam returns null' , async ( ) => {
440
440
const key = queryKey ( )
441
441
442
442
const observer = new InfiniteQueryObserver ( queryClient , {
@@ -471,7 +471,7 @@ describe('InfiniteQueryBehavior', () => {
471
471
unsubscribe ( )
472
472
} )
473
473
474
- test ( 'InfiniteQueryBehavior should use persister when provided' , async ( ) => {
474
+ test ( 'should use persister when provided' , async ( ) => {
475
475
const key = queryKey ( )
476
476
477
477
const persisterSpy = vi . fn ( ) . mockImplementation ( async ( fn ) => {
0 commit comments