sinon

unit testing node.js, stubbing dependencies using sinon

Monday March 10, 2014     node.js, testing, sinon

This post will demonstrate how to unit test node.js modules by mocking/stubing dependencies using sinon. Unit testing node.js is actually very simple once you know how. Code…