Skip to content

Commit

Permalink
remove Runnable@inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Apr 18, 2020
1 parent 8236ffd commit 891ed5a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions lib/runnable.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,31 +222,6 @@ Runnable.prototype.clearTimeout = function() {
clearTimeout(this.timer);
};

/**
* Inspect the runnable void of private properties.
*
* @private
* @return {string}
*/
Runnable.prototype.inspect = function() {
return JSON.stringify(
this,
function(key, val) {
if (key[0] === '_') {
return;
}
if (key === 'parent') {
return '#<Suite>';
}
if (key === 'ctx') {
return '#<Context>';
}
return val;
},
2
);
};

/**
* Reset the timeout.
*
Expand Down

0 comments on commit 891ed5a

Please sign in to comment.