Skip to content

Commit

Permalink
Test types
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed May 29, 2023
1 parent 83e2ec2 commit 13edca2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/AutoSizer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ describe("AutoSizer", () => {
width,
};

const { disableHeight = false, disableWidth = false, ...rest } = props;

mockOffsetSize(width, height);

container = document.createElement("div");
Expand All @@ -109,7 +111,11 @@ describe("AutoSizer", () => {
act(() => {
root.render(
<div style={wrapperStyle}>
<AutoSizer {...props}>
<AutoSizer
disableHeight={disableHeight as any}
disableWidth={disableWidth as any}
{...rest}
>
{({ height, width }: Size) => (
<ChildComponent
bar={bar}
Expand Down

0 comments on commit 13edca2

Please sign in to comment.