@@ -96,7 +96,7 @@ describe('queryObserver', () => {
96
96
97
97
queryClient . invalidateQueries ( { queryKey : key , refetchType : 'all' } )
98
98
99
- //So we still expect it to not have fetched and not be fetching
99
+ // So we still expect it to not have fetched and not be fetching
100
100
expect ( count ) . toBe ( 0 )
101
101
expect ( observer . getCurrentResult ( ) ) . toMatchObject ( {
102
102
status : 'pending' ,
@@ -113,7 +113,7 @@ describe('queryObserver', () => {
113
113
114
114
expect ( enabled ) . toBe ( false )
115
115
116
- //Not the same with explicit refetch, this will override enabled and trigger a fetch anyway
116
+ // Not the same with explicit refetch, this will override enabled and trigger a fetch anyway
117
117
observer . refetch ( )
118
118
119
119
expect ( observer . getCurrentResult ( ) ) . toMatchObject ( {
@@ -201,18 +201,18 @@ describe('queryObserver', () => {
201
201
202
202
queryClient . invalidateQueries ( { queryKey : key , refetchType : 'inactive' } )
203
203
204
- //should not refetch since it was active and we only refetch inactive
204
+ // should not refetch since it was active and we only refetch inactive
205
205
await waitFor ( ( ) => expect ( count ) . toBe ( 0 ) )
206
206
207
207
queryClient . invalidateQueries ( { queryKey : key , refetchType : 'active' } )
208
208
209
- //should refetch since it was active and we refetch active
209
+ // should refetch since it was active and we refetch active
210
210
await waitFor ( ( ) => expect ( count ) . toBe ( 1 ) )
211
211
212
212
// Toggle enabled
213
213
enabled = false
214
214
215
- //should not refetch since it is not active and we only refetch active
215
+ // should not refetch since it is not active and we only refetch active
216
216
queryClient . invalidateQueries ( { queryKey : key , refetchType : 'active' } )
217
217
218
218
await waitFor ( ( ) => expect ( count ) . toBe ( 1 ) )
@@ -792,7 +792,7 @@ describe('queryObserver', () => {
792
792
new QueryObserver ( queryClient , {
793
793
queryKey : key ,
794
794
queryFn : ( ) => 'data' ,
795
- //@ts -expect-error
795
+ // @ts -expect-error
796
796
enabled : null ,
797
797
} ) ,
798
798
) . toThrowError ( 'Expected enabled to be a boolean' )
@@ -947,7 +947,7 @@ describe('queryObserver', () => {
947
947
observer . setOptions ( {
948
948
queryKey : key ,
949
949
queryFn : ( ) => data ,
950
- //@ts -expect-error
950
+ // @ts -expect-error
951
951
select : ( ) => undefined ,
952
952
placeholderData : placeholderData2 ,
953
953
} )
0 commit comments