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

Pr/update fire event readme #14

Merged

Conversation

alecook
Copy link

@alecook alecook commented Apr 10, 2018

What:
Fixes typo in README for fireEvent method. Was using getElementByText changed -> getByText

Why: To clear up documentation and example usage

Checklist:

  • Documentation
  • Tests
  • Ready to be merged
  • Added myself to contributors table

README.md Outdated
@@ -377,7 +377,7 @@ Fire DOM events.
```javascript
// <button>Submit</button>
fireEvent(
getElementByText('Submit'),
getByText('Submit'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This should also receive a container as the first argument. Could you add that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do!

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks!

@kentcdodds kentcdodds merged commit a49f959 into testing-library:master Apr 10, 2018
@kentcdodds
Copy link
Member

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

alexkrolick pushed a commit to alexkrolick/dom-testing-library that referenced this pull request Sep 13, 2018
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