Open History to see the last commit
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})