Code Duplication    Length = 1-1 lines in 4 locations

node_modules/mocha/mocha.js 2 locations

@@ 9928-9928 (lines=1) @@
9925
 * @api private
9926
 */
9927
9928
function fmtShort(ms) {
9929
  if (ms >= d) {
9930
    return Math.round(ms / d) + 'd';
9931
  }
@@ 1687-1687 (lines=1) @@
1684
 * @param {number} ms
1685
 * @return {string}
1686
 */
1687
function shortFormat (ms) {
1688
  if (ms >= d) {
1689
    return Math.round(ms / d) + 'd';
1690
  }

node_modules/mocha/node_modules/debug/node_modules/ms/index.js 1 location

@@ 108-108 (lines=1) @@
105
 * @api private
106
 */
107
108
function fmtShort(ms) {
109
  if (ms >= d) {
110
    return Math.round(ms / d) + 'd';
111
  }

node_modules/mocha/lib/ms.js 1 location

@@ 83-83 (lines=1) @@
80
 * @param {number} ms
81
 * @return {string}
82
 */
83
function shortFormat (ms) {
84
  if (ms >= d) {
85
    return Math.round(ms / d) + 'd';
86
  }