Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Aug 13, 2020
1 parent 16b4c2e commit cba8298
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
14 changes: 10 additions & 4 deletions packages/material-ui/src/Menu/Menu.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('<Menu />', () => {
expect(handleEntering.callCount).to.equal(1);
expect(handleEntering.args[0].length).to.equal(2);
done();
}
},
}}
{...defaultProps}
/>,
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('<Menu />', () => {
expect(handleExiting.callCount).to.equal(1);
expect(handleExiting.args[0].length).to.equal(1);
done();
}
},
}}
{...defaultProps}
open
Expand Down Expand Up @@ -164,7 +164,9 @@ describe('<Menu />', () => {

it('should call onEntering with element if exists', () => {
const onEnteringSpy = spy();
const wrapper = mount(<Menu {...defaultProps} TransitionProps={{ onEntering: onEnteringSpy }} />);
const wrapper = mount(
<Menu {...defaultProps} TransitionProps={{ onEntering: onEnteringSpy }} />,
);
const popover = wrapper.find(Popover);

const elementForHandleEnter = { clientHeight: MENU_LIST_HEIGHT };
Expand All @@ -177,7 +179,11 @@ describe('<Menu />', () => {
it('should call props.onEntering, disableAutoFocusItem', () => {
const onEnteringSpy = spy();
const wrapper = mount(
<Menu disableAutoFocusItem {...defaultProps} TransitionProps={{ onEntering: onEnteringSpy }} />,
<Menu
disableAutoFocusItem
{...defaultProps}
TransitionProps={{ onEntering: onEnteringSpy }}
/>,
);
const popover = wrapper.find(Popover);

Expand Down
17 changes: 10 additions & 7 deletions packages/material-ui/src/Popover/Popover.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('<Popover />', () => {

// transitions towards entered
const wrapper = mount(
<Popover {...defaultProps} open transitionDuration={0} TransitionProps={{...handlers}}>
<Popover {...defaultProps} open transitionDuration={0} TransitionProps={{ ...handlers }}>
<div />
</Popover>,
);
Expand Down Expand Up @@ -332,10 +332,11 @@ describe('<Popover />', () => {
anchorEl={anchorEl}
anchorOrigin={anchorOrigin}
transitionDuration={0}
TransitionProps={{ onEntered: () => {
TransitionProps={{
onEntered: () => {
popoverEl = document.querySelector('[data-mui-test="Popover"]');
resolve();
}
},
}}
>
<div />
Expand Down Expand Up @@ -472,10 +473,11 @@ describe('<Popover />', () => {
anchorPosition={anchorPosition}
anchorOrigin={anchorOrigin}
transitionDuration={0}
TransitionProps={{ onEntered: () => {
TransitionProps={{
onEntered: () => {
popoverEl = document.querySelector('[data-mui-test="Popover"]');
resolve();
}
},
}}
>
<div />
Expand Down Expand Up @@ -517,10 +519,11 @@ describe('<Popover />', () => {
{...defaultProps}
anchorReference="none"
transitionDuration={0}
TransitionProps={{ onEntered: () => {
TransitionProps={{
onEntered: () => {
popoverEl = document.querySelector('[data-mui-test="Popover"]');
resolve();
}
},
}}
PaperProps={{
style: {
Expand Down

0 comments on commit cba8298

Please sign in to comment.