Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
What is Mocha ?
Tests use the
Assert module. In a nutshell, an assert function that fails (returns
false) will make the test fail. Using the
Assert module, you can compare the actual output of a function to the expected output.
In this example, you will need to correct the tests in order to correctly validate the
For more information on Mocha, follow this link.