January 2018
Beginner
658 pages
13h 10m
English
We'll kick things off in the Terminal by running our test-watch script:
npm run test-watch
The test script is going to start and as shown here, we have some tests:

We have our test, should return hello world response, showing up in the previous screenshot.
Now we can take things a step further making other assertions about the data that comes back. For example, we can use expect after the .get request in server.test.js to make an assertion about the status code. By default, all of our Express calls are going to return a 200 status code, which means that things went OK:
it('should return hello world response', ...