-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Change var and let where necessary #51
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
Conversation
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.
This is looking great! Make these changes and I think this is good to go, unless anyone has objections. Thanks so much for taking the time to make all of this consistent. I appreciate your constant support ;)
date.addDays(30); | ||
date.shouldEqual('1/31/2015'); | ||
}); | ||
|
||
it('handles leap year', function() { | ||
let date = new MakeMomentJSGreatAgain('2/1/2016'); | ||
cosnt date = new MakeMomentJSGreatAgain('2/1/2016'); |
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.
Should be const
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.
my bad :D
date.addDays(28); | ||
assert.equal('02/29/2016', date); | ||
}); | ||
|
||
it('handles non-leap year', function() { | ||
let date = new MakeMomentJSGreatAgain('2/1/2015'); | ||
cosnt date = new MakeMomentJSGreatAgain('2/1/2015'); |
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.
Should be const
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.
Is fixed now
* 'master' of github.com:ryanmcdermott/clean-code-javascript: Add: Error Handling Section Correct spelling of Cessna airplane Adjusted the commentthat show the result
This looks great! Since sadly the examples in this document aren't testable (maybe we could find a way in the future), I assume that everything here works after reading it as carefully as I could. If anyone sees anything else that stands out with these changes, open an issue or ideally a PR 😄 |
As discussed in #31 here my implementation of
const
andlet
.