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

removed usage any comparison in __tests__ #141

Merged
merged 1 commit into from
Feb 26, 2019

Conversation

JozeFe
Copy link
Contributor

@JozeFe JozeFe commented Feb 26, 2019

@tommmyy I removed usage of any function in tests, cause of logical errors.
And for now didn't use equalsToTrue, not sure if dependency in ramda-extension tests to ramda-extension function is correct approach.

expect(any(equals(true), [...]))toBe(true);
-> logical error, satisfied if only one is true

expect(any(equals(true), [...])).toBe(false);
-> for not finding any true value is good, but it really doesn't tests if return value is false, only that none is true.

@tommmyy
Copy link
Owner

tommmyy commented Feb 26, 2019

@JozeFe thank you very much for fixing the bug!

@tommmyy tommmyy merged commit 7c9ec85 into tommmyy:master Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants