concept testing in category express
appears as: testing,
Testing

This is an excerpt from Manning's book Express in Action: Writing, building, and testing Node.js applications.
Sinon.JS is useful in testing. Sometimes you want to test that a function is called and a lot more. Sinon lets you make sure a function is called with specific arguments or a specific number of times. Check it out at http://sinonjs.org/.
Understand the motivation for testing at a high level Understand the types of testing
You can write automated tests, which effectively puts these requirements into code. You write code that says make sure, with my calculator, that 1 + 1 = 2 and that 12 ÷ 3 = 4. This is effectively a specification for your program, but it’s not written in English; it’s written in code for the computer, which means that you can automatically verify it. Testing is usually short for automated testing, and it simply means running test code that verifies your real code.