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

createKey.test.ts

13 lines342 Bytes

1import { describe, expect, it } from 'vitest'
2import { createKey } from '../createKey'
3​
4describe('createKey', () => {
5 it('should return a key', () => {
6 const key = createKey()
7 expect(key).toStrictEqual(['key-1'])
8 })
9​
10 it('should return a new key each time', () => {
11 expect(createKey()).not.toStrictEqual(createKey())
12 })
13})