mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
22 lines
269 B
TypeScript
22 lines
269 B
TypeScript
import { test, expect } from 'vitest';
|
|
|
|
test('compareKeys', () => {
|
|
expect({
|
|
a: 1,
|
|
b: 2,
|
|
c: 3,
|
|
}).toMatchSnapshot();
|
|
|
|
expect({
|
|
c: 1,
|
|
b: 2,
|
|
a: 3,
|
|
}).toMatchSnapshot();
|
|
|
|
expect({
|
|
b: 1,
|
|
a: 2,
|
|
c: 3,
|
|
}).toMatchSnapshot();
|
|
});
|