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 612b1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Tab/Tab.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({ color: 'red' });
});
});

0 comments on commit 612b1f9

Please sign in to comment.