mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
24 lines
309 B
TypeScript
24 lines
309 B
TypeScript
import { test, expect } from "vitest";
|
|
|
|
test("", () => {
|
|
expect({foo: {
|
|
a: 1,
|
|
b: 2
|
|
}}).toMatchInlineSnapshot(`
|
|
Pretty foo: {
|
|
"a": 1,
|
|
"b": 2,
|
|
}
|
|
`);
|
|
|
|
expect({bar: {
|
|
a: 1,
|
|
b: 2
|
|
}}).toMatchInlineSnapshot(`
|
|
Pretty bar: {
|
|
"a": 1,
|
|
"b": 2,
|
|
}
|
|
`);
|
|
})
|