test-result
A simple module to mark the result of your tests
Installation
npm install test-result
Usage
var result = ; // if tests passedresult;// if tests failedresult;
On the server
It will log a message for test pass or fail. It will also process.exit(1)
if the tests failed.
On the client
It will log a message for test pass or fail if the browser has console support. It will also count the number of completed, passed and failed tests in three counters, initialized as:
windowTESTS_COMPLETE = 0;windowTESTS_PASSED = 0;windowTESTS_FAILED = 0;
License
MIT