From fa42d80a85c7a71a83cd02b2e5da97c92a91010a Mon Sep 17 00:00:00 2001 From: sai6855 Date: Wed, 11 Sep 2024 22:18:27 +0530 Subject: [PATCH] fix diff --- .../src/IconButton/IconButton.test.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) 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); }); });