Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

infiniteQueryOptions.test.tsx

13 lines406 Bytes

1import { infiniteQueryOptions } from '../infiniteQueryOptions'
2​
3describe('infiniteQueryOptions', () => {
4 it('should return the object received as a parameter without any modification.', () => {
5 const object = {
6 queryKey: ['key'],
7 queryFn: () => Promise.resolve(5),
8 getNextPageParam: () => null,
9 } as const
10​
11 expect(infiniteQueryOptions(object)).toStrictEqual(object)
12 })
13})