Add type check in create-whitebox-primitives.command.test.ts

This commit is contained in:
2026-04-15 08:12:14 +02:00
parent 1fdf8895c5
commit 420d43cae3

View File

@@ -56,6 +56,11 @@ describe("whitebox primitive creation commands", () => {
const brush = Object.values(store.getState().document.brushes)[0];
expect(brush.kind).toBe("radialPrism");
if (brush.kind !== "radialPrism") {
throw new Error("Expected a radial prism brush.");
}
expect(brush.sideCount).toBe(12);
expect(Object.keys(brush.faces)).toHaveLength(14);
});