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

Update main-test.js #46

Closed
wants to merge 1 commit into from
Closed

Update main-test.js #46

wants to merge 1 commit into from

Conversation

oliviertassinari
Copy link

Test that the evaluation is working for the defaultProps and not only propTypes.

Test that the evaluation is working for the defaultProps and not only propTypes.
@fkling
Copy link
Member

fkling commented Dec 11, 2015

Given that the test fails, it seems that defaultProps is not resolved to its value?

@oliviertassinari
Copy link
Author

Exactly.

@donnieberg
Copy link

@fkling Thanks for brining this to their attention. I'm using ES6 classes and am experiencing the same problem with getting defaultProps documentation from my components.

@fkling
Copy link
Member

fkling commented Jan 4, 2016

I fixed the issue locally and simply changed the existing tests to use referenced propTypes and defaultProps, instead of adding your additional test.

I hope that's fine with you, thank you very much for noticing this issue!

@fkling fkling closed this Jan 4, 2016
@oliviertassinari oliviertassinari deleted the patch-1 branch January 4, 2016 20:11
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants