Skip to content

Commit

Permalink
chore: fix linting errors in iframeSize.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
chillkang committed Aug 8, 2024
1 parent 42d2174 commit ec7cf3b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions static/js/libs/__tests__/iframeSize.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ describe("iframeSize", () => {

document.body.appendChild(frameWrapper);

frameWrapper.getBoundingClientRect = jest.fn(() => ({
x: 0,
y: 0,
top: 0,
left: 0,
bottom: 0,
right: 0,
width: 500,
height: 500,
})) as any;
frameWrapper.getBoundingClientRect = jest.fn(
(): DOMRect => ({
x: 0,
y: 0,
top: 0,
left: 0,
bottom: 0,
right: 0,
width: 500,
height: 500,
toJSON: () => ({}),
}),
) as jest.Mock;

iframeSize(".frame-wrapper");

Expand Down

0 comments on commit ec7cf3b

Please sign in to comment.