@@ -10,7 +10,7 @@ import { createQueries, queryOptions } from '../src/index.js'
1010import type { QueryObserverResult } from '@tanstack/query-core'
1111
1212describe ( 'queryOptions' , ( ) => {
13- test ( 'Should not allow excess properties' , ( ) => {
13+ test ( 'should not allow excess properties' , ( ) => {
1414 const key = queryKey ( )
1515 assertType (
1616 queryOptions ( {
@@ -22,7 +22,7 @@ describe('queryOptions', () => {
2222 )
2323 } )
2424
25- test ( 'Should infer types for callbacks' , ( ) => {
25+ test ( 'should infer types for callbacks' , ( ) => {
2626 const key = queryKey ( )
2727 queryOptions ( {
2828 queryKey : key ,
@@ -34,7 +34,7 @@ describe('queryOptions', () => {
3434 } )
3535 } )
3636
37- test ( 'Should work when passed to fetchQuery' , async ( ) => {
37+ test ( 'should work when passed to fetchQuery' , async ( ) => {
3838 const key = queryKey ( )
3939 const options = queryOptions ( {
4040 queryKey : key ,
@@ -45,7 +45,7 @@ describe('queryOptions', () => {
4545 expectTypeOf ( data ) . toEqualTypeOf < number > ( )
4646 } )
4747
48- test ( 'Should work when passed to createQueries' , ( ) => {
48+ test ( 'should work when passed to createQueries' , ( ) => {
4949 const key = queryKey ( )
5050 const options = queryOptions ( {
5151 queryKey : key ,
@@ -59,7 +59,7 @@ describe('queryOptions', () => {
5959 expectTypeOf ( queries [ 0 ] . data ) . toEqualTypeOf < number | undefined > ( )
6060 } )
6161
62- test ( 'Should tag the queryKey with the result type of the QueryFn' , ( ) => {
62+ test ( 'should tag the queryKey with the result type of the QueryFn' , ( ) => {
6363 const key = queryKey ( )
6464 const { queryKey : tagged } = queryOptions ( {
6565 queryKey : key ,
@@ -69,7 +69,7 @@ describe('queryOptions', () => {
6969 expectTypeOf ( tagged [ dataTagSymbol ] ) . toEqualTypeOf < number > ( )
7070 } )
7171
72- test ( 'Should tag the queryKey even if no promise is returned' , ( ) => {
72+ test ( 'should tag the queryKey even if no promise is returned' , ( ) => {
7373 const key = queryKey ( )
7474 const { queryKey : tagged } = queryOptions ( {
7575 queryKey : key ,
@@ -79,7 +79,7 @@ describe('queryOptions', () => {
7979 expectTypeOf ( tagged [ dataTagSymbol ] ) . toEqualTypeOf < number > ( )
8080 } )
8181
82- test ( 'Should tag the queryKey with unknown if there is no queryFn' , ( ) => {
82+ test ( 'should tag the queryKey with unknown if there is no queryFn' , ( ) => {
8383 const key = queryKey ( )
8484 const { queryKey : tagged } = queryOptions ( {
8585 queryKey : key ,
@@ -88,7 +88,7 @@ describe('queryOptions', () => {
8888 expectTypeOf ( tagged [ dataTagSymbol ] ) . toEqualTypeOf < unknown > ( )
8989 } )
9090
91- test ( 'Should tag the queryKey with the result type of the QueryFn if select is used' , ( ) => {
91+ test ( 'should tag the queryKey with the result type of the QueryFn if select is used' , ( ) => {
9292 const key = queryKey ( )
9393 const { queryKey : tagged } = queryOptions ( {
9494 queryKey : key ,
@@ -99,7 +99,7 @@ describe('queryOptions', () => {
9999 expectTypeOf ( tagged [ dataTagSymbol ] ) . toEqualTypeOf < number > ( )
100100 } )
101101
102- test ( 'Should return the proper type when passed to getQueryData' , ( ) => {
102+ test ( 'should return the proper type when passed to getQueryData' , ( ) => {
103103 const key = queryKey ( )
104104 const { queryKey : tagged } = queryOptions ( {
105105 queryKey : key ,
@@ -111,7 +111,7 @@ describe('queryOptions', () => {
111111 expectTypeOf ( data ) . toEqualTypeOf < number | undefined > ( )
112112 } )
113113
114- test ( 'Should return the proper type when passed to getQueryState' , ( ) => {
114+ test ( 'should return the proper type when passed to getQueryState' , ( ) => {
115115 const key = queryKey ( )
116116 const { queryKey : tagged } = queryOptions ( {
117117 queryKey : key ,
@@ -123,7 +123,7 @@ describe('queryOptions', () => {
123123 expectTypeOf ( state ?. data ) . toEqualTypeOf < number | undefined > ( )
124124 } )
125125
126- test ( 'Should properly type updaterFn when passed to setQueryData' , ( ) => {
126+ test ( 'should properly type updaterFn when passed to setQueryData' , ( ) => {
127127 const key = queryKey ( )
128128 const { queryKey : tagged } = queryOptions ( {
129129 queryKey : key ,
@@ -138,7 +138,7 @@ describe('queryOptions', () => {
138138 expectTypeOf ( data ) . toEqualTypeOf < number | undefined > ( )
139139 } )
140140
141- test ( 'Should properly type value when passed to setQueryData' , ( ) => {
141+ test ( 'should properly type value when passed to setQueryData' , ( ) => {
142142 const key = queryKey ( )
143143 const { queryKey : tagged } = queryOptions ( {
144144 queryKey : key ,
@@ -156,7 +156,7 @@ describe('queryOptions', () => {
156156 expectTypeOf ( data ) . toEqualTypeOf < number | undefined > ( )
157157 } )
158158
159- test ( 'Should infer even if there is a conditional skipToken' , ( ) => {
159+ test ( 'should infer even if there is a conditional skipToken' , ( ) => {
160160 const key = queryKey ( )
161161 const options = queryOptions ( {
162162 queryKey : key ,
@@ -168,7 +168,7 @@ describe('queryOptions', () => {
168168 expectTypeOf ( data ) . toEqualTypeOf < number | undefined > ( )
169169 } )
170170
171- test ( 'Should infer to unknown if we disable a query with just a skipToken' , ( ) => {
171+ test ( 'should infer to unknown if we disable a query with just a skipToken' , ( ) => {
172172 const key = queryKey ( )
173173 const options = queryOptions ( {
174174 queryKey : key ,
@@ -180,7 +180,7 @@ describe('queryOptions', () => {
180180 expectTypeOf ( data ) . toEqualTypeOf < unknown > ( )
181181 } )
182182
183- test ( 'Should return the proper type when passed to QueriesObserver' , ( ) => {
183+ test ( 'should return the proper type when passed to QueriesObserver' , ( ) => {
184184 const key = queryKey ( )
185185 const options = queryOptions ( {
186186 queryKey : key ,
@@ -194,7 +194,7 @@ describe('queryOptions', () => {
194194 > ( )
195195 } )
196196
197- test ( 'Should allow undefined response in initialData' , ( ) => {
197+ test ( 'should allow undefined response in initialData' , ( ) => {
198198 const key = queryKey ( )
199199 const options = ( id : string | null ) =>
200200 queryOptions ( {
0 commit comments