-
Notifications
You must be signed in to change notification settings - Fork 47.9k
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
Rudimentary tests for not covered entry points #11835
Rudimentary tests for not covered entry points #11835
Conversation
Hi @gaearon , this is the follow up PR for #11750 , changes are
I've also searched the codebase for entry points not covered in tests.
A question regarding the Thanks. |
) | ||
.getInstance(); | ||
expect(wedgeInstance._degreesToRadians(0)).toBe(0); | ||
expect(wedgeInstance._degreesToRadians(180)).toBe(3.141592653589793); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don’t think we should be calling internal functions. Just using props is enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, these tests are removed.
Can't find a good way to test the math generating path
, all other props are covered in snapshot tests.
Please let me know if anything's missing.
Thanks! |
* Add basic snapshot tests to ReactART components (Circle, Rectangle, Wedge) * More tests on Circle, Rectangle, Wedge * linc warning fixes * - remove tests to Wedge component internal function * More test on Wedge component, update snapshots
Add tests for ReactART Circle, Rectangle, Wedge components.