|
@@ -1247,7 +1247,7 @@ describe("Test Linear Elements", () => {
|
|
|
const textElement = h.elements[2] as ExcalidrawTextElementWithContainer;
|
|
|
|
|
|
expect(arrow.endBinding?.elementId).toBe(rect.id);
|
|
|
- expect(arrow.width).toBe(400);
|
|
|
+ expect(arrow.width).toBeCloseTo(408, 0);
|
|
|
expect(rect.x).toBe(400);
|
|
|
expect(rect.y).toBe(0);
|
|
|
expect(
|
|
@@ -1266,7 +1266,7 @@ describe("Test Linear Elements", () => {
|
|
|
mouse.downAt(rect.x, rect.y);
|
|
|
mouse.moveTo(200, 0);
|
|
|
mouse.upAt(200, 0);
|
|
|
- expect(arrow.width).toBeCloseTo(204, 0);
|
|
|
+ expect(arrow.width).toBeCloseTo(207, 0);
|
|
|
expect(rect.x).toBe(200);
|
|
|
expect(rect.y).toBe(0);
|
|
|
expect(handleBindTextResizeSpy).toHaveBeenCalledWith(
|