Add tests for box brush face editing and update existing tests

This commit is contained in:
2026-03-31 02:39:12 +02:00
parent 6c41d31e68
commit cbf7e16dd4
5 changed files with 292 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { describe, expect, it } from "vitest";
import { SCENE_DOCUMENT_VERSION, createEmptySceneDocument } from "../../src/document/scene-document";
import { STARTER_MATERIAL_LIBRARY } from "../../src/materials/starter-material-library";
describe("createEmptySceneDocument", () => {
it("creates a versioned empty scene document", () => {
@@ -11,5 +12,6 @@ describe("createEmptySceneDocument", () => {
expect(document.brushes).toEqual({});
expect(document.entities).toEqual({});
expect(document.modelInstances).toEqual({});
expect(Object.keys(document.materials)).toEqual(STARTER_MATERIAL_LIBRARY.map((material) => material.id));
});
});