Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 6276-6276 (lines=1) @@
6273
 * @param {boolean} recursive Whether or not to recurse into subdirectories.
6274
 * @return {string[]} An array of paths.
6275
 */
6276
exports.lookupFiles = function lookupFiles (path, extensions, recursive) {
6277
  var files = [];
6278
  var re = new RegExp('\\.(' + extensions.join('|') + ')$');
6279

node_modules/mocha/lib/utils.js 1 location

@@ 477-477 (lines=1) @@
474
 * @param {boolean} recursive Whether or not to recurse into subdirectories.
475
 * @return {string[]} An array of paths.
476
 */
477
exports.lookupFiles = function lookupFiles (path, extensions, recursive) {
478
  var files = [];
479
  var re = new RegExp('\\.(' + extensions.join('|') + ')$');
480