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…

validating express requests

Friday February 21, 2014     node.js, express, validation

This post demonstrates a module I have put together for validating a request passed to an express route. express-validation express-validation is a middleware that validates the body, params, query, headers…

Advanced Express Web Application Development

Sunday November 24, 2013     node.js, express

![](/content/images/2015/02/book-aewad.png) My new book [](Advanced Express Web Application Development) is now available to pre-order. The book is a practical…