Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

instrumented suite

Tj Holowaychukd264455609c3
diff --git a/lib/suite.js b/lib/suite.js
index e992a77b..d1995bc7 100644
--- a/lib/suite.js
+++ b/lib/suite.js
@@ -4,6 +4,7 @@
*/
var EventEmitter = require('events').EventEmitter
+ , debug = require('debug')('suite')
, Hook = require('./hook');
/**
@@ -98,6 +99,7 @@ Suite.prototype.clone = function(){
Suite.prototype.timeout = function(ms){
if (String(ms).match(/s$/)) ms = parseFloat(ms) * 1000;
+ debug('timeout %d', ms);
this._timeout = parseInt(ms, 10);
return this;
};