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