feat: more tests, refactored

This commit is contained in:
2026-05-24 21:05:21 +07:00
parent e7dd9420e7
commit c1f12c7201
33 changed files with 1403 additions and 334 deletions
+7
View File
@@ -47,6 +47,13 @@ describe("hasProjectChanged", () => {
expect(hasProjectChanged(a, b)).toBe(true);
});
it("detects visibility changes", () => {
const a = makeProject();
const b = makeProject();
b.layers[0].visible = false;
expect(hasProjectChanged(a, b)).toBe(true);
});
it("treats missing optional fields and undefined as equal", () => {
const a = makeProject();
const b = makeProject();