Unit testing in node.js
http://caolanmcmahon.com/posts/unit_testing_in_node_js
Lets walk through a basic node.js program using Test Driven Developement (TDD) and nodeunit. This program asks the user to enter a number, doubles it and returns the result.