☕️ Classic, reliable, trusted test framework for Node.js and the browser
resolves #1035: renaming options.long => options['long']
Christopher Hillered31b91a1815
diff --git a/lib/ms.js b/lib/ms.jsindex 40966374..ba451fab 100644--- a/lib/ms.js+++ b/lib/ms.js@@ -24,7 +24,7 @@ var y = d * 365.25;module.exports = function(val, options){options = options || {};if ('string' == typeof val) return parse(val);- return options.long ? longFormat(val) : shortFormat(val);+ return options['long'] ? longFormat(val) : shortFormat(val);};/**diff --git a/mocha.js b/mocha.jsindex 77117a60..a19f5e96 100644--- a/mocha.js+++ b/mocha.js@@ -1811,7 +1811,7 @@ var y = d * 365.25;module.exports = function(val, options){options = options || {};if ('string' == typeof val) return parse(val);- return options.long ? longFormat(val) : shortFormat(val);+ return options['long'] ? longFormat(val) : shortFormat(val);};/**