Skip to content

Commit

Permalink
change default of ignoreLeaks to true. Closes #791
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 3, 2013
1 parent f821eb6 commit 868b828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Mocha.prototype.run = function(fn){
var options = this.options;
var runner = new exports.Runner(suite);
var reporter = new this._reporter(runner);
runner.ignoreLeaks = options.ignoreLeaks;
runner.ignoreLeaks = false !== options.ignoreLeaks;
runner.asyncOnly = options.asyncOnly;
if (options.grep) runner.grep(options.grep, options.invert);
if (options.globals) runner.globals(options.globals);
Expand Down

0 comments on commit 868b828

Please sign in to comment.