Skip to content

Commit

Permalink
Get rid of "defaultProps" pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Jun 24, 2021
1 parent 858fc75 commit 1d6ac01
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/material-ui/src/Menu/Menu.test.js
Expand Up @@ -25,12 +25,8 @@ describe('<Menu />', () => {

const mount = createMount();
const render = createClientRender();
const defaultProps = {
open: false,
anchorEl: () => document.createElement('div'),
};

describeConformanceV5(<Menu {...defaultProps} open />, () => ({
describeConformanceV5(<Menu anchorEl={() => document.createElement('div')} open />, () => ({
classes,
inheritComponent: Popover,
render,
Expand Down

0 comments on commit 1d6ac01

Please sign in to comment.