Skip to content

Commit

Permalink
resolves mochajs#1035: renaming options.long => options['long']
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Hiller authored and tandrewnichols committed Dec 15, 2014
1 parent 4982ec1 commit 67fbfd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

/**
Expand Down

0 comments on commit 67fbfd9

Please sign in to comment.