summaryrefslogtreecommitdiffstats
path: root/test/index.js
blob: 2dd46b1ae173c4e6406d890d840b90d0737b58be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * Mocha test runner.
 */
var path = require('path');
var Mocha = require('mocha');

// Create our mocha instance.
var mocha = new Mocha();

// Add all the test files.
mocha.addFile(path.join(__dirname, 'test.js'));

// Run the tests.
mocha.run(function (failures) {
  process.on('exit', function () {
    throw new Error(failures);
  });
});