Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Fix #15 make render return bound queries passed as options #16

Merged

Conversation

elyalvarado
Copy link
Contributor

What:

Fix #15 make render return bound queries passed as options

Why:

The documentation mentions that queries can be passed as an option to render to specify which queries to bind, or add custom bound queries. This commit fixes this behavior and adds a regression test.

How:

In the implementation of the render function it passes the received queries from options to getQueriesForElement.

Checklist:

  • Documentation added to the
    docs site N/A
  • Typescript definitions updated N/A
  • Tests
  • Ready to be merged

…ions

The documentation mentions that queries can be passed as an option
to render to specify which queries to bind, or add custom bound
queries. This commit fixes this behaviour and adds a regression test.
@codecov-io
Copy link

codecov-io commented May 5, 2019

Codecov Report

Merging #16 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #16   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          23     23           
  Lines         287    287           
  Branches       49     49           
=====================================
  Hits          287    287
Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89a9d92...2a5b0b6. Read the comment docs.

@bcarroll22 bcarroll22 merged commit 19e2deb into testing-library:master May 5, 2019
@bcarroll22
Copy link
Collaborator

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Queries passed as options to render not being returned
3 participants