Skip to content

Commit

Permalink
Test: Use toHaveStyleRule instead of toHaveStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed Oct 5, 2023
1 parent f595c77 commit ad6f8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/components/form/__tests__/selectelement.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ describe('Menu tests', () => {
test('should render with position reference to parent element', () => {
const {getByTestId} = renderTest({mockBoundingClientRect: true});
const menu = getByTestId('select-menu');
expect(menu).toHaveStyle({top: '120px'});
expect(menu).toHaveStyleRule({top: '120px'});
expect(menu).toMatchSnapshot();
});

Expand Down

0 comments on commit ad6f8e3

Please sign in to comment.