Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor index.js & add more tests#223

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
mfeniseycopes wants to merge5 commits intoLogRocket:master
base:master
Choose a base branch
Loading
frommfeniseycopes:refactor

Conversation

@mfeniseycopes
Copy link

Refactorsindex.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 toindex.spec.js (still needs more though) and moves helper tests tohelpers.spec.js.

Let me know what you think!

thiamsantos and jrioscloud reacted with thumbs up emoji
@codecov-io
Copy link

codecov-io commentedApr 16, 2017
edited
Loading

Codecov Report

Merging#223 intomaster willdecrease coverage by14.21%.
The diff coverage is89.28%.

Impacted file tree graph

@@             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
Impacted FilesCoverage Δ
src/index.js89.74% <89.28%> (+2.9%)⬆️
src/diff.js8% <0%> (-92%)⬇️
src/core.js78.68% <0%> (+2.63%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update07cb031...ace19b8. Read thecomment docs.

@imevro
Copy link
Collaborator

Sorry for delay, will review on this week.

@imevro
Copy link
Collaborator

But it looks pretty good!

src/index.js Outdated
logErrors,
diffPredicate,
}=loggerOptions;
functionnoLogger(options){
Copy link
Collaborator

Choose a reason for hiding this comment

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

hasLogger maybe?

@imevro
Copy link
Collaborator

Can you please fix merge conflicts?

@mfeniseycopes
Copy link
Author

mfeniseycopes commentedMay 19, 2017
edited
Loading

Renamed#noLogger to#hasLogger and rebased to resolve merge conflicts.

@mfeniseycopes
Copy link
Author

@evgenyrodionov Have you had a chance to look this over?

@imevro
Copy link
Collaborator

imevro commentedJun 30, 2017
edited
Loading

@mfeniseycopes yes, after#234. Sorry for a delay, too busy now.

@vish288vish288 mentioned this pull requestSep 8, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@imevroimevroimevro left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mfeniseycopes@codecov-io@imevro

[8]ページ先頭

©2009-2025 Movatter.jp