@@ -96,7 +96,7 @@ describe('queryObserver', () => {
9696
9797 queryClient . invalidateQueries ( { queryKey : key , refetchType : 'all' } )
9898
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
100100 expect ( count ) . toBe ( 0 )
101101 expect ( observer . getCurrentResult ( ) ) . toMatchObject ( {
102102 status : 'pending' ,
@@ -113,7 +113,7 @@ describe('queryObserver', () => {
113113
114114 expect ( enabled ) . toBe ( false )
115115
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
117117 observer . refetch ( )
118118
119119 expect ( observer . getCurrentResult ( ) ) . toMatchObject ( {
@@ -201,18 +201,18 @@ describe('queryObserver', () => {
201201
202202 queryClient . invalidateQueries ( { queryKey : key , refetchType : 'inactive' } )
203203
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
205205 await waitFor ( ( ) => expect ( count ) . toBe ( 0 ) )
206206
207207 queryClient . invalidateQueries ( { queryKey : key , refetchType : 'active' } )
208208
209- //should refetch since it was active and we refetch active
209+ // should refetch since it was active and we refetch active
210210 await waitFor ( ( ) => expect ( count ) . toBe ( 1 ) )
211211
212212 // Toggle enabled
213213 enabled = false
214214
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
216216 queryClient . invalidateQueries ( { queryKey : key , refetchType : 'active' } )
217217
218218 await waitFor ( ( ) => expect ( count ) . toBe ( 1 ) )
@@ -792,7 +792,7 @@ describe('queryObserver', () => {
792792 new QueryObserver ( queryClient , {
793793 queryKey : key ,
794794 queryFn : ( ) => 'data' ,
795- //@ts -expect-error
795+ // @ts -expect-error
796796 enabled : null ,
797797 } ) ,
798798 ) . toThrowError ( 'Expected enabled to be a boolean' )
@@ -947,7 +947,7 @@ describe('queryObserver', () => {
947947 observer . setOptions ( {
948948 queryKey : key ,
949949 queryFn : ( ) => data ,
950- //@ts -expect-error
950+ // @ts -expect-error
951951 select : ( ) => undefined ,
952952 placeholderData : placeholderData2 ,
953953 } )
0 commit comments