os install test-guru
- open up
index.html
in your c9 and Run / Preview it. - open up
index.spec.js
in your c9 and have a look.
index.spec.js
contains a bunch of unit tests. Unit tests help us verify that our code is doing the right thing by calling our functions with some test data and making sure that our functions do the right thing. These tests are incomplete and it is our job today to complete them.
- Inspect the tests on the page and try to understand what's going on in general.
- All the tests are currently failing.
- If we look in index.html we can see that they are red and their status is failed
- Each one of the tests has at least one occurrence of "???". This is what we need to change.
- Change each "???" to the value that will make the test pass
- Once they pass they will be blue and not red on the page!