Skip to content

added attribute to QueryByAttribute and AllByAttribute #130

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

Conversation

BenjaminEckardt
Copy link
Contributor

@BenjaminEckardt BenjaminEckardt commented Oct 16, 2018

What:
Added attribute argument to type QueryByAttribute and AllByAttribute

Why:
This argument seems to be falsely missing.

Usage of AllByAttribute can bee seen here:
https://github.com/BenjaminEckardt/dom-testing-library/blob/master/src/queries.js#L60

Usage of QueryByAttribute is a bit less obvious due to currying but can be seen here:
https://github.com/kentcdodds/dom-testing-library/blob/master/src/queries.js#L153

How:
Just added the missing attribute.

Checklist:

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

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.

Ah, thanks!

@kentcdodds kentcdodds merged commit 4b62bf5 into testing-library:master Oct 16, 2018
@BenjaminEckardt BenjaminEckardt deleted the pr/query-helpers-typings branch October 16, 2018 21:03
@kentcdodds
Copy link
Member

🎉 This PR is included in version 3.11.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants