Testing Client/Server JavaScript
A walkthrough of starting on tests for your JavaScript using http://npmjs.org/tape. Then running those same tests in a browser using https://www.npmjs.com/package/zuul. Then finishing up with automating your tests as you push code using travis-ci and sauce labs.
Code example from this video: https://github.com/shama/letswritecode/tree/master/testing-client-server-javascript
source