We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toHaveStyle
@testing-library/jest-dom
The following assertions will always pass if the element doesn't have that CSS property set in style:
style
expect(element).toHaveStyle("border: fakefake"); expect(element).toHaveStyle("background: fakefake");
Fix needs to be made in to-have-style.js getStyleDeclaration. expected will be '' (empty string) in toHaveStyle.
getStyleDeclaration
expected
''
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@testing-library/jest-dom
version: latestRelevant code or config:
The following assertions will always pass if the element doesn't have that CSS property set in
style
:Suggested solution:
Fix needs to be made in to-have-style.js
getStyleDeclaration
.expected
will be''
(empty string) intoHaveStyle
.The text was updated successfully, but these errors were encountered: