nodesecurity/api — pull request #6 by alanshaw (2013-10-18 14:20:19+00:00)
Title: Stubbed out test runner with failing initial test. refs #2

This PR adds mocha to the project and a script to spin up a test API server, shut it down and optionally wipe data from the database between test suites.

I had to switch out `getconfig` for `config` as `getconfig` assumes config files are stored in the same directory as the executing script, which is not the case when running tests with mocha. `config` allows this and is pretty much a drop in replacement, it also allows for inherited config values, which I think is a big win.

I commented out the assertion in the test that causes the tests to fail as the git commit hooks wouldn't allow me to commit otherwise. Actually fixing the issue that the test tests is out of the scope of this PR.