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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Apr 25, 2019

Conversation

jberry93
Copy link
Contributor

Should increase coverage a tad for the highlighted loc 馃憤

Copy link
Contributor

@cpojer cpojer left a comment

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 facebook:master Apr 25, 2019
@gaearon
Copy link
Collaborator

gaearon commented Apr 25, 2019

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.

None yet

4 participants