Skip to content

Rephrase confusing documentation about TestRenderer.create return value #2246

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
Aug 15, 2019

Conversation

TPXP
Copy link
Contributor

@TPXP TPXP commented Aug 14, 2019

Hello,

The addition of the TestRenderer.act() method to the documentation broke the logical flow thus saying "The returned instance has the following methods and properties." is confusing now since the act() method is documented below (while it belongs to the TestRenderer class). This commit aims at clarifying what is returned.

By the way, react rocks, thanks a lot! <3

@facebook-github-bot
Copy link
Collaborator

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

The addition of the `TestRenderer.act()` method to the documentation broke the logical flow and "The returned instance has the following methods and properties." is now confusing since it's the `act()` method that is now documented afterwards. This commit aims at clarifying what is returned.
@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit 277f8bc82e144643c75b57626ba8c456ca43a8dd

https://deploy-preview-2246--reactjs.netlify.com

@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit a6c3af4

https://deploy-preview-2246--reactjs.netlify.com

@facebook-github-bot
Copy link
Collaborator

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@gaearon gaearon merged commit 78270c5 into reactjs:master Aug 15, 2019
@gaearon
Copy link
Member

gaearon commented Aug 15, 2019

Thanks, this is great.

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

Successfully merging this pull request may close these issues.

4 participants