Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 27, 2020
1 parent a57ac50 commit 22a193c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/Popper/Popper.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ describe('<Popper />', () => {
);
});

it('sets preventOverflow to window when disablePortal is false', () => {
it('sets preventOverflow to viewport when disablePortal is false', () => {
const popperRef = React.createRef();
const { getByRole } = render(<Popper {...defaultProps} popperRef={popperRef} />);
// renders
expect(getByRole('tooltip')).to.not.equal(null);
// correctly sets modifiers
expect(popperRef.current.options.modifiers.preventOverflow.boundariesElement).to.equal(
'window',
'viewport',
);
});
});
Expand Down

0 comments on commit 22a193c

Please sign in to comment.