Skip to content

fix: add expected to matcher toHaveFocus #66

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

Merged
merged 1 commit into from
Oct 12, 2018
Merged

fix: add expected to matcher toHaveFocus #66

merged 1 commit into from
Oct 12, 2018

Conversation

smacpherson64
Copy link
Collaborator

What:
Added expected to the toHaveFocus matcher

Why:
It makes the test results clearer as to what is expected against what is received.

How:
Added the expected using printExpected with the element

Checklist:

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

@smacpherson64 smacpherson64 merged commit 33e836d into testing-library:master Oct 12, 2018
@smacpherson64 smacpherson64 deleted the pr/add-expected-to-have-focus branch October 12, 2018 18:08
@gnapse
Copy link
Member

gnapse commented Oct 12, 2018

🎉 This PR is included in version 2.0.5 🎉

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.

2 participants