Skip to content

Commit

Permalink
migrate legacy enzyme test
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 28, 2021
1 parent 1e96013 commit 3eec2c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/material-ui/src/Drawer/Drawer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ describe('<Drawer />', () => {
);

it('should render a div instead of a Modal when permanent', () => {
const wrapper = mount(drawerElement);
const root = wrapper.find(`.${classes.root}`);
expect(root.type()).to.equal('div');
expect(root.hasClass(classes.docked)).to.equal(true);
const { container } = render(drawerElement);
const root = container.querySelector(`.${classes.root}`);
expect(root).to.have.tagName('div');
expect(root).to.have.class(classes.docked);
});

it('should render div > Paper inside the div', () => {
Expand Down

0 comments on commit 3eec2c2

Please sign in to comment.