#!/usr/bin/env node

var Mocha = require('mocha');

var mocha = new Mocha();
mocha.reporter('spec').ui('tdd');

mocha.addFile('test/basicPubSub.js');

var runner = mocha.run(function() {
  process.exit(0);
});

@@ -176,16 +176,24 @@
 unction(
+failures
 ) %7B%0A  pr
@@ -202,14 +202,63 @@
 ess.
-exit(0
+on('exit', function() %7B%0A    process.exit(failures);%0A  %7D
 );%0A%7D

Exit with a non-zero status code on test failure(s)