Skip to content

Commit

Permalink
mark Runnable#retries and Runnable#currentRetry methods as public
Browse files Browse the repository at this point in the history
This change makes it easier for Mocha reporters to report retriable and regular tests differently, should they choose to do so.
  • Loading branch information
jan-molak committed Jul 8, 2020
1 parent 7c8896c commit 904609d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/runnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ Runnable.prototype.isPassed = function() {
/**
* Set or get number of retries.
*
* @private
* @memberof Mocha.Runnable
* @public
* @returns {number|void}
*/
Runnable.prototype.retries = function(n) {
if (!arguments.length) {
Expand All @@ -177,7 +179,9 @@ Runnable.prototype.retries = function(n) {
/**
* Set or get current retry
*
* @private
* @memberof Mocha.Runnable
* @public
* @returns {number|void}
*/
Runnable.prototype.currentRetry = function(n) {
if (!arguments.length) {
Expand Down

0 comments on commit 904609d

Please sign in to comment.