Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 5228-5228 (lines=1) @@
5225
 * @returns {Boolean}
5226
 * @api private
5227
 */
5228
function filterOnly (suite) {
5229
  if (suite._onlyTests.length) {
5230
    // If the suite contains `only` tests, run those and ignore any nested suites.
5231
    suite.tests = suite._onlyTests;

node_modules/mocha/lib/runner.js 1 location

@@ 880-880 (lines=1) @@
877
 * @returns {Boolean}
878
 * @api private
879
 */
880
function filterOnly (suite) {
881
  if (suite._onlyTests.length) {
882
    // If the suite contains `only` tests, run those and ignore any nested suites.
883
    suite.tests = suite._onlyTests;