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

@@ -39,6 +39,22 @@ describe("box brush commands", () => {
z: 4
});
expect(Object.keys(brush.faces)).toEqual(["posX", "negX", "posY", "negY", "posZ", "negZ"]);
expect(brush.faces.posX).toEqual({
materialId: null,
uv: {
offset: {
x: 0,
y: 0
},
scale: {
x: 1,
y: 1
},
rotationQuarterTurns: 0,
flipU: false,
flipV: false
}
});
expect(store.getState().selection).toEqual({
kind: "brushes",
ids: [brush.id]