testing-library / jest-dom

:owl: Custom jest matchers to test the state of the DOM
https://testing-library.com/docs/ecosystem-jest-dom
MIT License
4.45k stars 401 forks source link

fix: support uppercase custom props in toHaveStyle #552

Closed depoulo closed 11 months ago

depoulo commented 12 months ago

What:

support uppercase custom props in toHaveStyle

fixes #551

Why:

CSS custom properties are case sensitive

How:

don't lowercase custom property names before comparing them

Checklist:

--

please squash and merge

related: #148, #164

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4ae0231) 100.00% compared to head (90296fc) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #552 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 27 27 Lines 664 668 +4 Branches 251 252 +1 ========================================= + Hits 664 668 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 11 months ago

:tada: This PR is included in version 6.1.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: