☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix: allow string formatting for timeout in Mocha constructor options. Re 9f7f3e5d
TJ Holowaychuk7397156bb661
diff --git a/lib/mocha.js b/lib/mocha.jsindex 184b8866..950cfadb 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -70,7 +70,7 @@ function Mocha(options) {this.ui(options.ui);this.bail(options.bail);this.reporter(options.reporter);- if (typeof options.timeout === 'number') this.timeout(options.timeout);+ if (null != options.timeout) this.timeout(options.timeout);if (options.slow) this.slow(options.slow);}