☕️ Classic, reliable, trusted test framework for Node.js and the browser
suite.timeout() => Number
Tj Holowaychukce22ae79c946
diff --git a/lib/suite.js b/lib/suite.jsindex d1995bc7..d3fa9833 100644--- a/lib/suite.js+++ b/lib/suite.js@@ -93,11 +93,12 @@ Suite.prototype.clone = function(){* Set timeout `ms` or short-hand such as "2s".** @param {Number|String} ms- * @return {Suite} for chaining+ * @return {Suite|Number} for chaining* @api private*/Suite.prototype.timeout = function(ms){+ if (0 == arguments.length) return this._timeout;if (String(ms).match(/s$/)) ms = parseFloat(ms) * 1000;debug('timeout %d', ms);this._timeout = parseInt(ms, 10);