- Download the file and navigate using the terminal inside the js folder.
- Run the following command to install the dependencies using NPM:
npm install
- Run the unit tests and verify the results:
npm test
- Open the js folder on Visual Studio Code and verify the existing test.
- Implement 2 unit tests for the divide function.
- Implement 2 unit tests for the multiply function.
- Implement 1 test for the add function that verifies a user that is not in the users' list.
- Implement 1 test for the remove function that verifies a user that is not in the users' list.
- Implement 2 unit tests for the findByEmail function.
- Implement 2 unit tests for the findById function.
In Test Driven Development you write the first test that fails, and then you add the code so test can pass.
- Write a unit test to verify the function divide by passing 0 as the second argument.
- Fix the divide function so the test passes and it does handle the case for division by 0.