Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Jun 6, 2024
1 parent 1933dfe commit 209987d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mui-material/src/Tab/Tab.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('<Tab />', () => {
MuiTab: {
styleOverrides: {
iconWrapper: {
color: 'red',
marginBottom: '6px',
},
},
},
Expand All @@ -187,7 +187,7 @@ describe('<Tab />', () => {
<Tab icon={<div>hello</div>} />
</ThemeProvider>,
);
const { style } = getByRole('tab');
expect(style).to.have.property('color', 'red');
const wrapper = getByRole('tab').children[0];
expect(wrapper).toHaveComputedStyle({ marginBottom: '6px' });
});
});

0 comments on commit 209987d

Please sign in to comment.