This is the demo code for the article "A Crash Course On Testing With Node.js".
The article consists of a number of samples explaining how to get started with testing using JavaScript and Node.js. Starting from the beginning, touching on general concepts of testing and the mindset needed. However, also explaining the three A's of Unit testing. Arrange, Act and Assert.
Lastly, the article shows the tools used in many applications in production. Mainly focusing on Mocha and Chai, letting the reader know what they are and how they are used.
Hope you enjoy!
You can read the full tutorial here!