@@ -20,7 +20,7 @@ describe('InfiniteQueryObserver', () => {
20
20
vi . useRealTimers ( )
21
21
} )
22
22
23
- test ( 'InfiniteQueryObserver should be able to fetch an infinite query with selector' , async ( ) => {
23
+ test ( 'should be able to fetch an infinite query with selector' , async ( ) => {
24
24
const key = queryKey ( )
25
25
const observer = new InfiniteQueryObserver ( queryClient , {
26
26
queryKey : key ,
@@ -43,7 +43,7 @@ describe('InfiniteQueryObserver', () => {
43
43
} )
44
44
} )
45
45
46
- test ( 'InfiniteQueryObserver should pass the meta option to the queryFn' , async ( ) => {
46
+ test ( 'should pass the meta option to the queryFn' , async ( ) => {
47
47
const meta = {
48
48
it : 'works' ,
49
49
}
@@ -73,7 +73,7 @@ describe('InfiniteQueryObserver', () => {
73
73
expect ( queryFn ) . toBeCalledWith ( expect . objectContaining ( { meta } ) )
74
74
} )
75
75
76
- test ( 'getNextPagParam and getPreviousPageParam should receive current pageParams' , async ( ) => {
76
+ test ( 'should make getNextPageParam and getPreviousPageParam receive current pageParams' , async ( ) => {
77
77
const key = queryKey ( )
78
78
let single : Array < string > = [ ]
79
79
let all : Array < string > = [ ]
@@ -207,7 +207,7 @@ describe('InfiniteQueryObserver', () => {
207
207
expect ( observer . getCurrentResult ( ) . hasNextPage ) . toBe ( false )
208
208
} )
209
209
210
- test ( 'getOptimisticResult should set infinite query behavior and return initial state' , ( ) => {
210
+ test ( 'should set infinite query behavior via getOptimisticResult and return the initial state' , ( ) => {
211
211
const key = queryKey ( )
212
212
const observer = new InfiniteQueryObserver ( queryClient , {
213
213
queryKey : key ,
0 commit comments