From 6e968324fb5b29b7f8b277576905ff366f6597f0 Mon Sep 17 00:00:00 2001 From: Ryan Di Date: Mon, 4 Aug 2025 12:09:06 +1000 Subject: [PATCH] fix snapshots --- .../element/tests/linearElementEditor.test.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/element/tests/linearElementEditor.test.tsx b/packages/element/tests/linearElementEditor.test.tsx index f1306b872..04bbac819 100644 --- a/packages/element/tests/linearElementEditor.test.tsx +++ b/packages/element/tests/linearElementEditor.test.tsx @@ -377,7 +377,7 @@ describe("Test Linear Elements", () => { // drag line from midpoint drag(midpoint, pointFrom(midpoint[0] + delta, midpoint[1] + delta)); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `11`, + `12`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`6`); @@ -479,7 +479,7 @@ describe("Test Linear Elements", () => { drag(startPoint, endPoint); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `11`, + `12`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`7`); @@ -547,7 +547,7 @@ describe("Test Linear Elements", () => { ); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `14`, + `16`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`7`); @@ -598,7 +598,7 @@ describe("Test Linear Elements", () => { drag(hitCoords, pointFrom(hitCoords[0] - delta, hitCoords[1] - delta)); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `11`, + `12`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`6`); @@ -639,7 +639,7 @@ describe("Test Linear Elements", () => { drag(hitCoords, pointFrom(hitCoords[0] + delta, hitCoords[1] + delta)); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `11`, + `12`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`6`); @@ -687,7 +687,7 @@ describe("Test Linear Elements", () => { deletePoint(points[2]); expect(line.points.length).toEqual(3); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `17`, + `18`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`7`); @@ -745,7 +745,7 @@ describe("Test Linear Elements", () => { ), ); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `14`, + `16`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`7`); expect(line.points.length).toEqual(5); @@ -843,7 +843,7 @@ describe("Test Linear Elements", () => { drag(hitCoords, pointFrom(hitCoords[0] + delta, hitCoords[1] + delta)); expect(renderInteractiveScene.mock.calls.length).toMatchInlineSnapshot( - `11`, + `12`, ); expect(renderStaticScene.mock.calls.length).toMatchInlineSnapshot(`6`);