blob: 7f4b138a158f2f3b997c1432545b9ab767543de3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import {expect, test} from '@jest/globals'
import {transform} from '#/state/persisted/legacy'
import {defaults, schema} from '#/state/persisted/schema'
test('defaults', () => {
expect(() => schema.parse(defaults)).not.toThrow()
})
test('transform', () => {
const data = transform({})
expect(() => schema.parse(data)).not.toThrow()
})
|