Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 1191-1191 (lines=1) @@
1188
 * @param {string|Function} reporter name or constructor
1189
 * @param {Object} reporterOptions optional options
1190
 */
1191
Mocha.prototype.reporter = function (reporter, reporterOptions) {
1192
  if (typeof reporter === 'function') {
1193
    this._reporter = reporter;
1194
  } else {

node_modules/mocha/lib/mocha.js 1 location

@@ 140-140 (lines=1) @@
137
 * @param {string|Function} reporter name or constructor
138
 * @param {Object} reporterOptions optional options
139
 */
140
Mocha.prototype.reporter = function (reporter, reporterOptions) {
141
  if (typeof reporter === 'function') {
142
    this._reporter = reporter;
143
  } else {