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 Oct 16, 2016
1 parent 205e31b commit 0e8d879
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 @@ -795,7 +795,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 @@ -5285,7 +5285,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 0e8d879

Please sign in to comment.