Testing with Mocha – 2. Using the assert library

In the previous lesson we’ve created our first test, but used only one assertion to check if the result equals to a predefined value. Let’s take a look at the capabilities of the Chai’s assert library, and explore them through some more advanced examples. Using strictEqual and notStrictEqual In the first example we’ve already used …