vitest/test/config/fixtures/diff/basic.test.ts
Hiroshi Ogawa 391860f79b
feat: support inline diff options and support printBasicPrototype (#6740)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
Co-authored-by: Michał Grzegorzewski <4864089+spamshaker@users.noreply.github.com>
2024-11-13 16:59:31 +01:00

21 lines
354 B
TypeScript

import { expect, test } from 'vitest'
test('large diff', () => {
const x = [...Array(30)].map((_, i) => i);
const y = [...x];
y[0] = 1000;
y[15] = 2000;
y[29] = 3000;
expect(x).toEqual(y)
})
test("printBasicPrototype", () => {
expect({
obj: { k: "foo" },
arr: [1, 2]
}).toEqual({
obj: { k: "bar" },
arr: [1, 3]
});
})