visionmedia/mocha — pull request #359 by arian (2012-03-31 22:32:32+00:00)
Title: Accept a ready function in mocha.run(), just like Mocha.prototype.run.

The JS API supports something like this:

``` js
var mocha = new Mocha();
// ...

mocha.run(function(failures){
console.log('finished with ' + failures + ' failures');
});
```

The browser version of `mocha.run()` however didn't support this yet.