Files
2026-05-11 17:46:13 +02:00

22 lines
439 B
TypeScript

import { expect, test } from 'vitest'
import "../domain/basic-extend"
test('all literal', () => {
expect({ name: 'alice', age: '30' }).toMatchKvInlineSnapshot(`
name=alice
age=30
`)
})
test('with regex', () => {
expect({ name: 'bob', score: '999', status: 'active' }).toMatchKvInlineSnapshot(`
name=bob
score=999
status=active
`)
})
test('empty snapshot', () => {
expect({}).toMatchKvInlineSnapshot(``)
})