Skip to content
New issue

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

fix: #49: update-tohavestyle-to-match-cssstyledeclaration #57

Merged
merged 2 commits into from Sep 18, 2018
Merged

fix: #49: update-tohavestyle-to-match-cssstyledeclaration #57

merged 2 commits into from Sep 18, 2018

Conversation

smacpherson64
Copy link
Collaborator

What:
Fixing issue where element styles are formatted differently using CSSStyleDeclaration than normal css object.

Why:
Causes tests to fail (I.E.: #49), where inconsistencies between CSSStyleDeclaration's and a parsed css object occur.

How:
Converted the parsed css text object into CSSStyleDeclaration (using a detached element) before checking.

Checklist:

  • Documentation N/A
  • Tests
  • Updated Type Definitions N/A
  • Ready to be merged
  • Added myself to contributors table N/A

@smacpherson64 smacpherson64 changed the title fix/update-tohavestyle-to-match-cssstyledeclaration fix: update-tohavestyle-to-match-cssstyledeclaration Sep 11, 2018
@smacpherson64 smacpherson64 changed the title fix: update-tohavestyle-to-match-cssstyledeclaration fix: #49: update-tohavestyle-to-match-cssstyledeclaration Sep 11, 2018
@smacpherson64 smacpherson64 merged commit 042db4d into testing-library:master Sep 18, 2018
@gnapse
Copy link
Member

gnapse commented Sep 18, 2018

🎉 This PR is included in version 1.12.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants