summaryrefslogtreecommitdiffstats
path: root/test/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/index.js')
-rw-r--r--test/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/index.js b/test/index.js
index 4ebe02c..2dd46b1 100644
--- a/test/index.js
+++ b/test/index.js
@@ -1,8 +1,8 @@
/**
* Mocha test runner.
*/
-var Mocha = require('mocha');
var path = require('path');
+var Mocha = require('mocha');
// Create our mocha instance.
var mocha = new Mocha();
@@ -13,6 +13,6 @@ mocha.addFile(path.join(__dirname, 'test.js'));
// Run the tests.
mocha.run(function (failures) {
process.on('exit', function () {
- process.exit(failures);
+ throw new Error(failures);
});
});