Skip to content

Commit

Permalink
implement markOnly instance method in suite class
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidOtt committed May 5, 2020
1 parent 956cef2 commit 4b37e3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/suite.js
Expand Up @@ -493,6 +493,16 @@ Suite.prototype.appendOnlySuite = function(suite) {
this._onlySuites.push(suite);
};

/**
* Marks a suite to be `only`.
*
* @private
* @param {Suite} suite
*/
Suite.prototype.markOnly = function() {
this.parent.appendOnlySuite(this);
};

/**
* Adds a test to the list of tests marked `only`.
*
Expand Down

0 comments on commit 4b37e3c

Please sign in to comment.