-
Notifications
You must be signed in to change notification settings - Fork 487
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
Make warrior upset when losing points #107
Conversation
Codecov Report
@@ Coverage Diff @@
## master #107 +/- ##
==========================================
+ Coverage 90.84% 90.87% +0.02%
==========================================
Files 80 80
Lines 1016 1019 +3
Branches 158 158
==========================================
+ Hits 923 926 +3
Misses 77 77
Partials 16 16
Continue to review full report at Codecov.
|
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.
@skywalker212 Looks good, but it's missing a unit test. Would you mind adding it?
@olistic ya sure, but I don't know how to add a unit test, can you tell me how to add one? |
@skywalker212 Sure. In this particular case, it's super easy. Just look at the earning points test in |
@olistic I have added the unit test, please review. |
warrior.losePoints(5); | ||
expect(warrior.say).toHaveBeenCalledWith('loses 5 points'); | ||
}); | ||
|
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.
@skywalker212 Linting is complaining because of this extra line break, you need to remove the empty line.
@olistic I have made the changes, please review. |
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.
Thanks @skywalker212!
@olistic Thanks for guiding through problems! |
Closes #104