Repository navigation
Cape Town | 26-ITP-Sept | Leigh Ross | Sprint 2 | Implement and rewrite tests - #1683
leigh-ross wants to merge 13 commits into
Conversation
|
@leigh-ross Hi Leigh! Great work overall on this coursework but I have left a few changes you need to look into. In general, you should always make sure to run your tests before committing - you don't want to be committing work that isn't passing tests! A quick note on your commits: I really appreciate you committing once per function, I think that is a good practice for using commits to track when some unit of work is complete. The commit messages could use a little bit of improvement for you to consider in the future. I would try to write commit messages by stating what the commit will change if it is merged (I know we don't merge PRs at CYF, but in a workplace you would). Imagine they are following on from the phrase "this commit will...", for example instead of:
You could say
You don't need to make these changes as part of this PR but bear it in mind for future :) |
…, Adapted test suites for node and jest to test the new logic correctly. All tests pass.
…dded error for both if conditions do not pass. Added tests in node and jest for the incorrect suit case and error throwing. All tests pass.
| test("-980/100 is not a proper fraction", () => { | ||
| expect(isProperFraction(-98, 100)).toBe(false); | ||
| }); |
There was a problem hiding this comment.
I'm afraid I'm still getting a failing test here! Looks like the assertion doesn't match the intention of the test perhaps...
There was a problem hiding this comment.
I think it should be fixed now. My apologies for this back and forth.
There was a problem hiding this comment.
don't apologise, that's what code review is for 🙂
|
@leigh-ross Excellent! All done 👌 |
Learners, PR Template
Self checklist
Task code
CYF-1059
Changelist
Added 3 functions:
Added node tests for each Function.
Rewrote node tests for jest.