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

queryOptions.test.tsx

13 lines375 Bytes

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})