@@ -14,7 +14,7 @@ const fn = () => 'mock'
14
14
15
15
describe ( 'QueryCache' , ( ) => {
16
16
describe ( 'isFetching' , ( ) => {
17
- test ( 'should properly unwrap 1 parameter' , async ( ) => {
17
+ test ( 'should properly unwrap 1 parameter' , ( ) => {
18
18
const queryClient = new QueryClient ( )
19
19
20
20
queryClient . isFetching ( {
@@ -28,7 +28,7 @@ describe('QueryCache', () => {
28
28
} )
29
29
30
30
describe ( 'isMutating' , ( ) => {
31
- test ( 'should properly unwrap 1 parameter' , async ( ) => {
31
+ test ( 'should properly unwrap 1 parameter' , ( ) => {
32
32
const queryClient = new QueryClient ( )
33
33
34
34
queryClient . isMutating ( {
@@ -42,7 +42,7 @@ describe('QueryCache', () => {
42
42
} )
43
43
44
44
describe ( 'getQueryData' , ( ) => {
45
- test ( 'should properly unwrap 1 parameter' , async ( ) => {
45
+ test ( 'should properly unwrap 1 parameter' , ( ) => {
46
46
const queryClient = new QueryClient ( )
47
47
48
48
queryClient . getQueryData ( queryKeyRef )
@@ -54,7 +54,7 @@ describe('QueryCache', () => {
54
54
} )
55
55
56
56
describe ( 'getQueriesData' , ( ) => {
57
- test ( 'should properly unwrap queryKey param' , async ( ) => {
57
+ test ( 'should properly unwrap queryKey param' , ( ) => {
58
58
const queryClient = new QueryClient ( )
59
59
60
60
queryClient . getQueriesData ( { queryKey : queryKeyRef } )
@@ -64,7 +64,7 @@ describe('QueryCache', () => {
64
64
} )
65
65
} )
66
66
67
- test ( 'should properly unwrap filters param' , async ( ) => {
67
+ test ( 'should properly unwrap filters param' , ( ) => {
68
68
const queryClient = new QueryClient ( )
69
69
70
70
queryClient . getQueriesData ( { queryKey : queryKeyRef } )
@@ -76,7 +76,7 @@ describe('QueryCache', () => {
76
76
} )
77
77
78
78
describe ( 'setQueryData' , ( ) => {
79
- test ( 'should properly unwrap 3 parameter' , async ( ) => {
79
+ test ( 'should properly unwrap 3 parameter' , ( ) => {
80
80
const queryClient = new QueryClient ( )
81
81
82
82
queryClient . setQueryData ( queryKeyRef , fn , {
@@ -92,7 +92,7 @@ describe('QueryCache', () => {
92
92
} )
93
93
94
94
describe ( 'setQueriesData' , ( ) => {
95
- test ( 'should properly unwrap params with queryKey' , async ( ) => {
95
+ test ( 'should properly unwrap params with queryKey' , ( ) => {
96
96
const queryClient = new QueryClient ( )
97
97
98
98
queryClient . setQueriesData ( { queryKey : queryKeyRef } , fn , {
@@ -106,7 +106,7 @@ describe('QueryCache', () => {
106
106
)
107
107
} )
108
108
109
- test ( 'should properly unwrap params with filters' , async ( ) => {
109
+ test ( 'should properly unwrap params with filters' , ( ) => {
110
110
const queryClient = new QueryClient ( )
111
111
112
112
queryClient . setQueriesData ( { queryKey : queryKeyRef } , fn , {
@@ -122,7 +122,7 @@ describe('QueryCache', () => {
122
122
} )
123
123
124
124
describe ( 'getQueryState' , ( ) => {
125
- test ( 'should properly unwrap 1 parameter' , async ( ) => {
125
+ test ( 'should properly unwrap 1 parameter' , ( ) => {
126
126
const queryClient = new QueryClient ( )
127
127
128
128
queryClient . getQueryState ( queryKeyRef )
@@ -134,7 +134,7 @@ describe('QueryCache', () => {
134
134
} )
135
135
136
136
describe ( 'removeQueries' , ( ) => {
137
- test ( 'should properly unwrap 1 parameter' , async ( ) => {
137
+ test ( 'should properly unwrap 1 parameter' , ( ) => {
138
138
const queryClient = new QueryClient ( )
139
139
140
140
queryClient . removeQueries ( {
@@ -148,7 +148,7 @@ describe('QueryCache', () => {
148
148
} )
149
149
150
150
describe ( 'resetQueries' , ( ) => {
151
- test ( 'should properly unwrap 2 parameter' , async ( ) => {
151
+ test ( 'should properly unwrap 2 parameter' , ( ) => {
152
152
const queryClient = new QueryClient ( )
153
153
154
154
queryClient . resetQueries (
@@ -168,7 +168,7 @@ describe('QueryCache', () => {
168
168
} )
169
169
170
170
describe ( 'cancelQueries' , ( ) => {
171
- test ( 'should properly unwrap 2 parameter' , async ( ) => {
171
+ test ( 'should properly unwrap 2 parameter' , ( ) => {
172
172
const queryClient = new QueryClient ( )
173
173
174
174
queryClient . cancelQueries (
@@ -259,7 +259,7 @@ describe('QueryCache', () => {
259
259
} )
260
260
261
261
describe ( 'refetchQueries' , ( ) => {
262
- test ( 'should properly unwrap 2 parameter' , async ( ) => {
262
+ test ( 'should properly unwrap 2 parameter' , ( ) => {
263
263
const queryClient = new QueryClient ( )
264
264
265
265
queryClient . refetchQueries (
@@ -279,7 +279,7 @@ describe('QueryCache', () => {
279
279
} )
280
280
281
281
describe ( 'fetchQuery' , ( ) => {
282
- test ( 'should properly unwrap parameter' , async ( ) => {
282
+ test ( 'should properly unwrap parameter' , ( ) => {
283
283
const queryClient = new QueryClient ( )
284
284
285
285
queryClient . fetchQuery ( {
@@ -293,7 +293,7 @@ describe('QueryCache', () => {
293
293
} )
294
294
295
295
describe ( 'prefetchQuery' , ( ) => {
296
- test ( 'should properly unwrap parameters' , async ( ) => {
296
+ test ( 'should properly unwrap parameters' , ( ) => {
297
297
const queryClient = new QueryClient ( )
298
298
299
299
queryClient . prefetchQuery ( { queryKey : queryKeyRef , queryFn : fn } )
@@ -306,7 +306,7 @@ describe('QueryCache', () => {
306
306
} )
307
307
308
308
describe ( 'fetchInfiniteQuery' , ( ) => {
309
- test ( 'should properly unwrap parameter' , async ( ) => {
309
+ test ( 'should properly unwrap parameter' , ( ) => {
310
310
const queryClient = new QueryClient ( )
311
311
312
312
queryClient . fetchInfiniteQuery ( {
@@ -319,7 +319,7 @@ describe('QueryCache', () => {
319
319
queryKey : queryKeyUnref ,
320
320
} )
321
321
} )
322
- test ( 'should properly unwrap parameter using infiniteQueryOptions with unref' , async ( ) => {
322
+ test ( 'should properly unwrap parameter using infiniteQueryOptions with unref' , ( ) => {
323
323
const queryClient = new QueryClient ( )
324
324
325
325
const options = infiniteQueryOptions ( {
@@ -338,7 +338,7 @@ describe('QueryCache', () => {
338
338
} )
339
339
340
340
describe ( 'prefetchInfiniteQuery' , ( ) => {
341
- test ( 'should properly unwrap parameters' , async ( ) => {
341
+ test ( 'should properly unwrap parameters' , ( ) => {
342
342
const queryClient = new QueryClient ( )
343
343
344
344
queryClient . prefetchInfiniteQuery ( {
@@ -356,7 +356,7 @@ describe('QueryCache', () => {
356
356
} )
357
357
358
358
describe ( 'setDefaultOptions' , ( ) => {
359
- test ( 'should properly unwrap parameters' , async ( ) => {
359
+ test ( 'should properly unwrap parameters' , ( ) => {
360
360
const queryClient = new QueryClient ( )
361
361
362
362
queryClient . setDefaultOptions ( {
@@ -374,7 +374,7 @@ describe('QueryCache', () => {
374
374
} )
375
375
376
376
describe ( 'setQueryDefaults' , ( ) => {
377
- test ( 'should properly unwrap parameters' , async ( ) => {
377
+ test ( 'should properly unwrap parameters' , ( ) => {
378
378
const queryClient = new QueryClient ( )
379
379
380
380
queryClient . setQueryDefaults ( queryKeyRef , {
@@ -391,7 +391,7 @@ describe('QueryCache', () => {
391
391
} )
392
392
393
393
describe ( 'getQueryDefaults' , ( ) => {
394
- test ( 'should properly unwrap parameters' , async ( ) => {
394
+ test ( 'should properly unwrap parameters' , ( ) => {
395
395
const queryClient = new QueryClient ( )
396
396
397
397
queryClient . getQueryDefaults ( queryKeyRef )
@@ -403,7 +403,7 @@ describe('QueryCache', () => {
403
403
} )
404
404
405
405
describe ( 'setMutationDefaults' , ( ) => {
406
- test ( 'should properly unwrap parameters' , async ( ) => {
406
+ test ( 'should properly unwrap parameters' , ( ) => {
407
407
const queryClient = new QueryClient ( )
408
408
409
409
queryClient . setMutationDefaults ( queryKeyRef , {
@@ -420,7 +420,7 @@ describe('QueryCache', () => {
420
420
} )
421
421
422
422
describe ( 'getMutationDefaults' , ( ) => {
423
- test ( 'should properly unwrap parameters' , async ( ) => {
423
+ test ( 'should properly unwrap parameters' , ( ) => {
424
424
const queryClient = new QueryClient ( )
425
425
426
426
queryClient . getMutationDefaults ( queryKeyRef )
0 commit comments