Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix callback style

TJ Holowaychukb804660eb731
diff --git a/bin/mocha b/bin/mocha
index 2859fb0d..d61c8e1b 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -35,7 +35,7 @@ process.argv.slice(2).forEach(function (arg) {
var proc = spawn(process.argv[0], args, { customFds: [0,1,2] });
proc.on('exit', function (code, signal) {
- process.on('exit', function () {
+ process.on('exit', function(){
if (signal) {
process.kill(process.pid, signal);
} else {