auto-git:
[change] tests/domain/create-box-brush.command.test.ts
This commit is contained in:
@@ -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
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user