Skip to content

test(accumulate): add test suite for accumulate function#15159

Merged
cpojer merged 2 commits into
react:masterfrom
jberry93:increase-test-coverage
Apr 25, 2019
Merged

test(accumulate): add test suite for accumulate function#15159
cpojer merged 2 commits into
react:masterfrom
jberry93:increase-test-coverage

Conversation

@jberry93

Copy link
Copy Markdown
Contributor

Should increase coverage a tad for the highlighted loc 👍

@cpojer cpojer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding a test!

@cpojer cpojer merged commit d61da93 into react:master Apr 25, 2019
@gaearon

gaearon commented Apr 25, 2019

Copy link
Copy Markdown
Collaborator

We try not to add tests like this that use private APIs anymore. Instead, we test the public API. In this case, this implementation is already covered by the actual events tests.

It doesn't hurt that we added this, but for the future, we made a concentrated effort to get away from these kinds of tests. Thanks for sending the PR though! I understand it's not very obvious because it doesn't match how many JS projects do testing.

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