-
Notifications
You must be signed in to change notification settings - Fork 613
Conversation
Current coverage is
|
*/ | ||
function padLeft(str, size, padWith) { | ||
if (size <= str.length) { | ||
return str |
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.
To cover this code, simply add a test that calls padLeft
with a size
that's smaller than the length of the string you give. For example: padLeft('12345', 3)
should do the trick. 👍
This looks great! Please add that test. Let me know if you need more help! Thanks! |
I had a little trouble with the commit message, so I ran my commit with |
Sure thing! The CONTRIBUTING.md explains our convention a bit. And if you'd like you can add you changes with |
It looks like there have been changes in the master branch since you made your changes and there's a merge conflict. Could you kindly rebase your branch with master and resolve any conflicts? Let me know if you need any help doing that! |
Awesome job on the rebase! This is ready to be merged. One more thing though, could you please squash these commits into a single commit with a message that follows our commit message conventions? |
It's ready to go! |
Fantastic work. This is perfect. I'll merge this pull request and the module will be automatically released using semantic-release (find out how here). Thanks @kentcdodds! 🎊 🎉 |
WIP: Cannot get coverage quite there
For some reason I was unable to get code coverage to 100% could you please help and provide any other feedback? Thanks!
Here's the coverage report:
It looks like I'm just missing coverage for the case where there is no
padWith
specified. Should I just make a test that covers that case?