Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2import { infiniteQueryOptions } from '../infiniteQueryOptions'
3β
4describe('infiniteQueryOptions', () => {
5 it('should return the object received as a parameter without any modification.', () => {
6 const object = {
7 queryKey: ['key'],
8 queryFn: () => Promise.resolve(5),
9 getNextPageParam: () => null,
10 initialPageParam: null,
11 } as const
12β
13 expect(infiniteQueryOptions(object)).toBe(object)
14 })
15})