mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
* 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
10 lines
279 B
TypeScript
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')
|
|
})
|
|
})
|