prey/prey-node-client — pull request #19 by hermanjunge (2013-02-11 13:21:50+00:00)
Title: WIP - Building Tests

This is a permanent work-in-progress. i.e. "Don't accept this PR yet, until it matures!". The idea is, to be able to test all functions of the prey node client using mocha. I spent a lot of time learning how to abstract the dependencies using techniques such as "dependency injection" and the such, and how to separate the operations of `mocha` from the client, since both depends on `commander` to procede.

This is a very interesting assignment, the person able to test every feature of this client will gain a powerful insight on how the _prey client_ works.

Currently (as of 20130211 ), we have the modest quantity of two tests. My compromise is to produce at least one more test a day.