Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jperals committed Sep 14, 2023
1 parent 885033b commit 2b37e3a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const defaults = {
height: '605px',
left: 'auto',
width: '100px',
overflows: false,
};

function getSizedElement(width: number, height: number, top = 0, left = 0) {
Expand Down Expand Up @@ -49,6 +50,7 @@ describe('getDropdownPosition', () => {
const dropdown = getSizedElement(600, 400);
expect(getDropdownPosition({ triggerBox, dropdownElement: dropdown, overflowParents: [windowSize] })).toEqual({
...defaults,
overflows: true,
dropLeft: true,
width: '550px',
});
Expand Down

0 comments on commit 2b37e3a

Please sign in to comment.