zustand/tests/subscribe.test.tsx
Charles Kornoelje 9baf0a5d38
chore(test): stop testing deprecated features and test subscribe in vanilla (#2244)
* chore(test): update test to stop testing deprecated features

* chore(test): add subscribe test for zustand/vanilla

* chore(test): only verify that subscribe exists on `create`

* chore(test): switch type of test
2023-12-13 00:46:50 +09:00

10 lines
279 B
TypeScript

import { describe, expect, it } from 'vitest'
import { create } from 'zustand'
describe('subscribe()', () => {
it('should correctly have access to subscribe', () => {
const { subscribe } = create(() => ({ value: 1 }))
expect(typeof subscribe).toBe('function')
})
})