From e7279166c9f49cb415486bfeccb601f521092569 Mon Sep 17 00:00:00 2001 From: Yunine Date: Fri, 17 Jul 2026 20:37:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ImageCanvasStageInteractionModel.test.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/image-editor/ImageCanvasStageInteractionModel.test.ts b/src/components/image-editor/ImageCanvasStageInteractionModel.test.ts index 40625737c..c05ae0ec7 100644 --- a/src/components/image-editor/ImageCanvasStageInteractionModel.test.ts +++ b/src/components/image-editor/ImageCanvasStageInteractionModel.test.ts @@ -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 },