Add test for default data

This commit is contained in:
Eric Bailey
2023-12-05 16:36:45 -06:00
parent 81fcedaf0e
commit 60e265ab04
+5 -1
View File
@@ -1,7 +1,11 @@
import {expect, test} from '@jest/globals'
import {transform} from '#/state/persisted/legacy'
import {schema} from '#/state/persisted/schema'
import {defaults, schema} from '#/state/persisted/schema'
test('defaults', () => {
expect(() => schema.parse(defaults)).not.toThrow()
})
test('transform', () => {
const data = transform({})