修复测试文件

This commit is contained in:
2026-07-17 20:37:55 +08:00
parent 0b037f46e9
commit e7279166c9
@@ -345,9 +345,9 @@ describe('ImageCanvasStageInteractionModel', () => {
minimapScale: 0.4,
moved: false,
});
expect(
updateMinimapDragMovement(minimapDrag, { x: 121, y: 90 }),
).toBe(minimapDrag);
expect(updateMinimapDragMovement(minimapDrag, { x: 121, y: 90 })).toBe(
minimapDrag,
);
expect(updateMinimapDragMovement(minimapDrag, { x: 123, y: 90 })).toEqual({
...minimapDrag,
moved: true,
@@ -385,7 +385,10 @@ describe('ImageCanvasStageInteractionModel', () => {
dialog: anotherDialog,
layers,
generationDialogs: [dialog, anotherDialog],
selectedLayerIds: ['layer-a', getCanvasGenerationSelectionId('dialog-1')],
selectedLayerIds: [
'layer-a',
getCanvasGenerationSelectionId('dialog-1'),
],
isMultiSelectGesture: true,
pointerId: 12,
pointer: { x: 360, y: 260 },