Skip to content

Commit

Permalink
Fix .only() behaviour when running with watch option
Browse files Browse the repository at this point in the history
  • Loading branch information
ddneat committed Aug 9, 2017
1 parent 075bd51 commit 5e82629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ Runner.prototype.run = function (fn) {
var rootSuite = this.suite;

// If there is an `only` filter
if (this.hasOnly) {
if (hasOnly(rootSuite)) {
filterOnly(rootSuite);
}

Expand Down
2 changes: 1 addition & 1 deletion mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -5319,7 +5319,7 @@ Runner.prototype.run = function (fn) {
var rootSuite = this.suite;

// If there is an `only` filter
if (this.hasOnly) {
if (hasOnly(rootSuite)) {
filterOnly(rootSuite);
}

Expand Down

0 comments on commit 5e82629

Please sign in to comment.