From 9c595a171ff7c4d679e2c92fdd858cdce29dab76 Mon Sep 17 00:00:00 2001 From: mnajdova Date: Mon, 12 Aug 2024 11:45:43 +0200 Subject: [PATCH] convert arrow function to named function --- packages/mui-material/src/IconButton/IconButton.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mui-material/src/IconButton/IconButton.test.js b/packages/mui-material/src/IconButton/IconButton.test.js index 6053bdbb45a6f2..76011f1d2dbf29 100644 --- a/packages/mui-material/src/IconButton/IconButton.test.js +++ b/packages/mui-material/src/IconButton/IconButton.test.js @@ -143,10 +143,10 @@ describe('', () => { }); it('should apply the hover background by default', function test() { - if(!/jsdom/.test(window.navigator.userAgent)) { + if (!/jsdom/.test(window.navigator.userAgent)) { this.skip(); } - + const { container, getByTestId } = render(); fireEvent.mouseMove(container.firstChild, { @@ -157,8 +157,8 @@ describe('', () => { }); }); - it('should not apply the hover background if disableRipple is true', () => { - if(!/jsdom/.test(window.navigator.userAgent)) { + it('should not apply the hover background if disableRipple is true', function test() { + if (!/jsdom/.test(window.navigator.userAgent)) { this.skip(); }