Skip to content

Commit

Permalink
convert arrow function to named function
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Aug 12, 2024
1 parent 0c6c28e commit 9c595a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-material/src/IconButton/IconButton.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ describe('<IconButton />', () => {
});

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(<IconButton data-testid="icon-button" />);

fireEvent.mouseMove(container.firstChild, {
Expand All @@ -157,8 +157,8 @@ describe('<IconButton />', () => {
});
});

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();
}

Expand Down

0 comments on commit 9c595a1

Please sign in to comment.