-
Notifications
You must be signed in to change notification settings - Fork 318
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
Refactor index.js & add more tests #223
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #223 +/- ##
===========================================
- Coverage 83.56% 69.34% -14.22%
===========================================
Files 5 5
Lines 146 137 -9
===========================================
- Hits 122 95 -27
- Misses 24 42 +18
Continue to review full report at Codecov.
|
Sorry for delay, will review on this week. |
But it looks pretty good! |
src/index.js
Outdated
logErrors, | ||
diffPredicate, | ||
} = loggerOptions; | ||
function noLogger(options) { |
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.
hasLogger
maybe?
Can you please fix merge conflicts? |
Renamed |
@evgenyrodionov Have you had a chance to look this over? |
@mfeniseycopes yes, after #234. Sorry for a delay, too busy now. |
Refactors
index.js
to utilize more helper methods and make code more semantic. No changes in logic or naming conventions, just shifting things around. Also, moves early returns to the top of createLogger to prevent unnecessary assignments and variable creation.Also, adds more specs to
index.spec.js
(still needs more though) and moves helper tests tohelpers.spec.js
.Let me know what you think!