#!/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);
});

#!/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(failures) {
  process.on('exit', function() {
    process.exit(failures);
  });
});

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