Skip to content

Commit

Permalink
Re-purpose bug test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Jun 25, 2020
1 parent 376630e commit 24376ab
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/material-ui-lab/src/TreeView/TreeView.test.js
Expand Up @@ -62,9 +62,7 @@ describe('<TreeView />', () => {
);
});

// should not throw eventually or with a better error message
// FIXME: https://github.com/mui-org/material-ui/issues/20832
it('crashes when unmounting with duplicate ids', () => {
it('should not crash when unmounting with duplicate ids', () => {
class ErrorBoundary extends React.Component {
state = { error: null };

Expand Down Expand Up @@ -118,8 +116,7 @@ describe('<TreeView />', () => {
const {
current: { errors },
} = errorRef;
expect(errors).to.have.length(1);
expect(errors[0].toString()).to.include('RangeError: Maximum call stack size exceeded');
expect(errors).to.have.length(0);
});
});

Expand Down

0 comments on commit 24376ab

Please sign in to comment.