Now, it's time for you to write some unit tests yourself. Try following the same approach to test the checkContentTypeIsJson, checkContentTypeIsSet, and errorHandler middleware functions. Refer to the code bundle for help if needed. As always, run the tests and commit your code!
Once all of our middleware functions have been unit tested, we will move on to testing the request handlers and the engine.