We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53aad0d commit aa5120bCopy full SHA for aa5120b
test/index.spec.ts
@@ -9,7 +9,7 @@ function getItem(key: string) {
9
return item ? JSON.parse(item) : null // can only parse strings
10
}
11
12
-describe('persist', () => {
+describe('basic persist functionality', () => {
13
beforeEach(() => window.localStorage.clear())
14
15
it('should persist nothing if no actions are used', async () => {
@@ -34,6 +34,10 @@ describe('persist', () => {
34
await persist('user', user)
35
expect(getSnapshot(user)).toStrictEqual(persistedDataF)
36
})
37
+})
38
+
39
+describe('persist options', () => {
40
+ beforeEach(() => window.localStorage.clear())
41
42
it('shouldn\'t jsonify', async () => {
43
const user = UserStoreF.create()
0 commit comments