How to set up Mocha with Sinon.js

added by JavaScript Kicks
11/30/2019 11:22:33 AM

190 Views

Step by step guide to using Sinon.js mocking library with Mocha.js test runner Let's say we have a small Node program and want to confirm it logs "Hello" string to the console We need a test runner to write a test and an ability to spy console.log method.


0 comments