Skip to content

#17: Add bindElementToQueries utility function for libraries using this API #18

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 3 commits into from
Apr 11, 2018

Conversation

dfcook
Copy link
Contributor

@dfcook dfcook commented Apr 11, 2018

What: Add bindElementToQueries utility function, taking a DOM element and binding the functions from queries.js

Why: Reduce duplicated code in libraries using this API and the tests for this library themselves.

How: Added file bind-element-to-queries.js, moved the Object.assign code from the test helper and added it to the export from index.js

Checklist:

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

@dfcook dfcook changed the title #17: Add bindQueriesToElement utility function for libraries using this API #17: Add bindElementToQueries utility function for libraries using this API Apr 11, 2018
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.

This is perfect 👍 thanks!

@kentcdodds kentcdodds merged commit 4410b4c into testing-library:master Apr 11, 2018
@kentcdodds
Copy link
Member

🎉 This PR is included in version 1.6.0 🎉

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