Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

optional runner function

  • Loading branch information...
commit 25c6248a57df4d3b5d3cf9b4c333207e0eeeca41 1 parent f5c482b
@tj tj authored
Showing with 6 additions and 2 deletions.
  1. +2 −1  lib/runner.js
  2. +3 −1 mocha.js
  3. +1 −0  support/tail.js
View
3  lib/runner.js
@@ -363,7 +363,8 @@ Runner.prototype.runSuite = function(suite, fn){
*/
Runner.prototype.run = function(fn){
- var self = this;
+ var self = this
+ , fn = fn || function(){};
// callback
self.on('end', function(){
View
4 mocha.js
@@ -1970,7 +1970,8 @@ Runner.prototype.runSuite = function(suite, fn){
*/
Runner.prototype.run = function(fn){
- var self = this;
+ var self = this
+ , fn = fn || function(){};
// callback
self.on('end', function(){
@@ -2317,6 +2318,7 @@ module.exports = function(paths, fn){
process = {};
process.nextTick = function(fn){ setTimeout(fn, 0); };
+process.removeListener = function(fn){};
process.on = function(){};
process.exit = function(status){};
process.stdout = {};
View
1  support/tail.js
@@ -10,6 +10,7 @@
process = {};
process.nextTick = function(fn){ setTimeout(fn, 0); };
+process.removeListener = function(fn){};
process.on = function(){};
process.exit = function(status){};
process.stdout = {};
Please sign in to comment.
Something went wrong with that request. Please try again.