auto-git:

[change] tests/domain/create-box-brush.command.test.ts
This commit is contained in:
2026-04-22 14:04:22 +02:00
parent 3ca210961c
commit 2aa1ddf1bf

View File

@@ -291,26 +291,24 @@ describe("box brush commands", () => {
createSetBoxBrushVolumeSettingsCommand({ createSetBoxBrushVolumeSettingsCommand({
brushId: createdBrush.id, brushId: createdBrush.id,
volume: { volume: {
mode: "water", mode: "light",
water: { light: {
colorHex: "#3a7dc2", colorHex: "#ffd9a6",
surfaceOpacity: 0.65, intensity: 1.75,
waveStrength: 0.4, padding: 0.45,
foamContactLimit: 6, falloff: "smoothstep"
surfaceDisplacementEnabled: false
} }
} }
}) })
); );
expect(store.getState().document.brushes[createdBrush.id].volume).toEqual({ expect(store.getState().document.brushes[createdBrush.id].volume).toEqual({
mode: "water", mode: "light",
water: { light: {
colorHex: "#3a7dc2", colorHex: "#ffd9a6",
surfaceOpacity: 0.65, intensity: 1.75,
waveStrength: 0.4, padding: 0.45,
foamContactLimit: 6, falloff: "smoothstep"
surfaceDisplacementEnabled: false
} }
}); });
@@ -321,13 +319,12 @@ describe("box brush commands", () => {
expect(store.redo()).toBe(true); expect(store.redo()).toBe(true);
expect(store.getState().document.brushes[createdBrush.id].volume).toEqual({ expect(store.getState().document.brushes[createdBrush.id].volume).toEqual({
mode: "water", mode: "light",
water: { light: {
colorHex: "#3a7dc2", colorHex: "#ffd9a6",
surfaceOpacity: 0.65, intensity: 1.75,
waveStrength: 0.4, padding: 0.45,
foamContactLimit: 6, falloff: "smoothstep"
surfaceDisplacementEnabled: false
} }
}); });
}); });