Open History to see the last commit
1import { describe, expect, it } from 'vitest'
2import { queryOptions } from '../queryOptions'
3β
4describe('queryOptions', () => {
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 } as const
10β
11 expect(queryOptions(object)).toBe(object)
12 })
13})