File size: 337 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { describe, expect, it } from 'vitest'
import { queryKey } from '../queryKey'

describe('queryKey', () => {
  it('should return a query key', () => {
    const key = queryKey()
    expect(key).toEqual(['query_1'])
  })
  it('should return a new query key each time', () => {
    expect(queryKey()).not.toEqual(queryKey())
  })
})