mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
test: rename persistent (#1315)
This commit is contained in:
parent
f0ff30f7c4
commit
5ca63d1d63
@ -1,7 +1,7 @@
|
||||
import create from 'zustand'
|
||||
import { persist } from 'zustand/middleware'
|
||||
|
||||
const createPersistantStore = (initialValue: string | null) => {
|
||||
const createPersistentStore = (initialValue: string | null) => {
|
||||
let state = initialValue
|
||||
|
||||
const getItem = (): string | null => {
|
||||
@ -92,7 +92,7 @@ describe('persist middleware with sync configuration', () => {
|
||||
})
|
||||
|
||||
it('can persist state', () => {
|
||||
const { storage, setItemSpy } = createPersistantStore(null)
|
||||
const { storage, setItemSpy } = createPersistentStore(null)
|
||||
|
||||
const createStore = () => {
|
||||
const onRehydrateStorageSpy = jest.fn()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user