1
0
mirror of synced 2026-02-03 18:01:02 -05:00
Files
blitz/packages/pkg-template/test/sample.test.ts

14 lines
287 B
TypeScript

import {assert, expect, test} from "vitest"
test("JSON", () => {
const input = {
foo: "hello",
bar: "world",
}
const output = JSON.stringify(input)
expect(output).eq('{"foo":"hello","bar":"world"}')
assert.deepEqual(JSON.parse(output), input, "matches original")
})