-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
improve code coverage to 99.31% #1373
Conversation
if (xdata > new Date()) { | ||
return false; | ||
// eslint-disable-next-line max-len | ||
} else if ((xdata.getFullYear() === yyyy) && (xdata.getMonth() === mm - 1) && (xdata.getDate() === dd)) { |
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.
Could you explain this rewrite?
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.
Or check if you rebased correctly with the latest master
.
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.
xdata is created using yyyy, mm-1, and dd
.
Getting xdata.getFullYear()
and comparing it with what it was used to create it, it will always be true
.
So, that line seemed redundant and of no use(it is like creating x from w, which is equal to 1 and comparing x.w with w or 1`.
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.
Got it, thanks.
I did the same work to improve the coverage to 100% how can i create a new pull request without erasing @ezkemboi work ? :( |
@tux-tn, I think if you rebase from the master, it will definitely not erase. Also, there are some code changes that I made on |
I will do that review 👍.
…On Sat, Jul 11, 2020, 6:22 PM Sarhan Aissi ***@***.***> wrote:
@ezkemboi <https://github.com/ezkemboi> my issue was that i already
commited my changes last week and didn't see your PR. But fixed, i already
submitted my PR including your changes. Feel free to check #1376
<#1376> and review it,
especially the changes to isIdentityCard
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1373 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALVWPH2Z5LWUDX55XV5SV6DR3B7UDANCNFSM4OQQ7V4A>
.
|
Improve test coverage
Checklist