diff --git a/packages/mui-material/src/IconButton/IconButton.test.js b/packages/mui-material/src/IconButton/IconButton.test.js index 888c62188afa57..765c9002211ad8 100644 --- a/packages/mui-material/src/IconButton/IconButton.test.js +++ b/packages/mui-material/src/IconButton/IconButton.test.js @@ -154,41 +154,41 @@ describe('', () => { expect(getByTestId('icon-button')).toHaveComputedStyle({ backgroundColor: 'rgba(0, 0, 0, 0)' }); }); - it('should disableRipple if set in MuiButtonBase', async () => { - const { container, getByRole } = render( + it('should not throw error for a custom color', () => { + expect(() => ( - book, - , - ); - await ripple.startTouch(getByRole('button')); - expect(container.querySelector('.touch-ripple')).to.equal(null); + + + )).not.to.throw(); }); - it('should not throw error for a custom color', () => { - expect(() => ( + it('should disableRipple if set in MuiButtonBase', async () => { + const { container, getByRole } = render( - - - )).not.to.throw(); + book, + , + ); + await ripple.startTouch(getByRole('button')); + expect(container.querySelector('.touch-ripple')).to.equal(null); }); });