Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ 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.js
index 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.js
index 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);
};
/**