14 lines
375 B
TypeScript
14 lines
375 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { queryOptions } from '../src/index.js'
|
|
|
|
describe('queryOptions', () => {
|
|
it('should return the object received as a parameter without any modification.', () => {
|
|
const object = {
|
|
queryKey: ['key'],
|
|
queryFn: () => Promise.resolve(5),
|
|
} as const
|
|
|
|
expect(queryOptions(object)).toBe(object)
|
|
})
|
|
})
|