diff --git a/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts b/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts index 40959fc7..53e22999 100644 --- a/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts +++ b/packages/react-resizable-panels/src/utils/rects/getIntersectingRectangle.test.ts @@ -4,7 +4,7 @@ import { Rectangle } from "./types"; const emptyRect = { x: 0, y: 0, width: 0, height: 0 }; const rect = { x: 25, y: 25, width: 50, height: 50 }; -function forkRect(partial: Partial, baseRect: Rectangle = rect) { +function forkRect(partial: Partial) { return { ...rect, ...partial }; } diff --git a/packages/react-resizable-panels/src/utils/rects/intersects.test.ts b/packages/react-resizable-panels/src/utils/rects/intersects.test.ts index 2cf38eca..2f550518 100644 --- a/packages/react-resizable-panels/src/utils/rects/intersects.test.ts +++ b/packages/react-resizable-panels/src/utils/rects/intersects.test.ts @@ -4,7 +4,7 @@ import { Rectangle } from "./types"; const emptyRect = { x: 0, y: 0, width: 0, height: 0 }; const rect = { x: 25, y: 25, width: 50, height: 50 }; -function forkRect(partial: Partial, baseRect: Rectangle = rect) { +function forkRect(partial: Partial) { return { ...rect, ...partial }; }