Monday, 16 April, 2018 UTC


Summary

Test-driven development is a methodology for writing the tests first for a given module and the actual implementation afterward. If you write your tests before your application code, that saves you from the cognitive load of keeping all the implementation details in mind, for the time you have to write your tests. You will learn how to write a test in nodejs using mocha. I will show you how to fail the test, pass the test and recfactor the code