Skip to content

Commit

Permalink
Complete rename of _cleanReferencesAfterRun
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojs committed Apr 22, 2020
1 parent 2a35a03 commit 2da4688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,11 @@ Mocha.prototype.run = function(fn) {
var suite = this.suite;
var options = this.options;
options.files = this.files;
var runner = new exports.Runner(suite, options.delay, this._autoDispose);
var runner = new exports.Runner(
suite,
options.delay,
this._cleanReferencesAfterRun
);
createStatsCollector(runner);
var reporter = new this._reporter(runner, options);
runner.checkLeaks = options.checkLeaks === true;
Expand Down

0 comments on commit 2da4688

Please sign in to comment.