mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com> Co-authored-by: Michał Grzegorzewski <4864089+spamshaker@users.noreply.github.com>
21 lines
354 B
TypeScript
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]
|
|
});
|
|
})
|