The purpose of this project is to practice unit tests in javascript. You have to write tests to all modules in the modules folder. You'll have to add code to some functions.
- Fork this repository (from the
mainbranch). - Clone your forked repository.
- Run npm install.
- Write your tests.
- Run your work with
npm run test. - Create a script command to run tests with coverage.
- Run the coverage command, and check your result.
- Commit and push your work.
- Open a pull request.
When you run npm run test, all tests must succeed. When you run the coverage command, look at the following table to see your result rate.
| line coverage | result |
|---|---|
| > 90% | excellent |
| 80% - 90% | good |
| 70% - 80% | not bad |
| 60% - 70% | try more |
| 50% - 60% | just pass |
| < 50% | did't pass |