In this lab, you will write unit tests for functions implemented in main.js. You can learn how to use classes and functions by uncommenting their code. (But remember, don't commit them to GitHub)
- Write test cases in
main_test.jsand achieve 100% code coverage. (100%)
You can run validate.sh in your local environment to test if you satisfy the requirements.
Please note that you must not alter files other than main_test.js. You will get 0 points if
- You modify other files to achieve requirements.
- You can't pass all CI on your commit.
You need to commit and push the corresponding changes to your repository, which contains the code that satisfies the aforementioned requirements.