mocha 6.1.1 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mocha.js CHANGED
@@ -193,7 +193,7 @@ global.mocha = mocha;
193
193
  module.exports = global;
194
194
 
195
195
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
196
- },{"./lib/mocha":14,"_process":70,"browser-stdout":41}],2:[function(require,module,exports){
196
+ },{"./lib/mocha":14,"_process":69,"browser-stdout":41}],2:[function(require,module,exports){
197
197
  (function (process,global){
198
198
  'use strict';
199
199
 
@@ -365,7 +365,7 @@ function notPermitted(err) {
365
365
  }
366
366
 
367
367
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
368
- },{"../../package":91,"../runner":34,"_process":70}],3:[function(require,module,exports){
368
+ },{"../../package":90,"../runner":34,"_process":69}],3:[function(require,module,exports){
369
369
  'use strict';
370
370
 
371
371
  /**
@@ -1500,6 +1500,10 @@ function Mocha(options) {
1500
1500
  options.color = 'color' in options ? options.color : options.useColors;
1501
1501
  }
1502
1502
 
1503
+ // Globals are passed in as options.global, with options.globals for backward compatibility.
1504
+ options.globals = options.global || options.globals || [];
1505
+ delete options.global;
1506
+
1503
1507
  this.grep(options.grep)
1504
1508
  .fgrep(options.fgrep)
1505
1509
  .ui(options.ui)
@@ -1934,7 +1938,7 @@ Mocha.prototype._growl = growl.notify;
1934
1938
  * Specifies whitelist of variable names to be expected in global scope.
1935
1939
  *
1936
1940
  * @public
1937
- * @see {@link https://mochajs.org/#--globals-names|CLI option}
1941
+ * @see {@link https://mochajs.org/#-global-variable-name|CLI option}
1938
1942
  * @see {@link Mocha#checkLeaks}
1939
1943
  * @param {String[]|String} globals - Accepted global variable name(s).
1940
1944
  * @return {Mocha} this
@@ -1945,9 +1949,12 @@ Mocha.prototype._growl = growl.notify;
1945
1949
  * mocha.globals(['jQuery', 'MyLib']);
1946
1950
  */
1947
1951
  Mocha.prototype.globals = function(globals) {
1948
- this.options.globals = (this.options.globals || [])
1952
+ this.options.globals = this.options.globals
1949
1953
  .concat(globals)
1950
- .filter(Boolean);
1954
+ .filter(Boolean)
1955
+ .filter(function(elt, idx, arr) {
1956
+ return arr.indexOf(elt) === idx;
1957
+ });
1951
1958
  return this;
1952
1959
  };
1953
1960
 
@@ -2237,7 +2244,7 @@ Mocha.prototype.run = function(fn) {
2237
2244
  };
2238
2245
 
2239
2246
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2240
- },{"../package.json":91,"./context":5,"./errors":6,"./growl":2,"./hook":7,"./interfaces":11,"./mocharc.json":15,"./reporters":21,"./runnable":33,"./runner":34,"./stats-collector":35,"./suite":36,"./test":37,"./utils":38,"_process":70,"escape-string-regexp":49,"path":40}],15:[function(require,module,exports){
2247
+ },{"../package.json":90,"./context":5,"./errors":6,"./growl":2,"./hook":7,"./interfaces":11,"./mocharc.json":15,"./reporters":21,"./runnable":33,"./runner":34,"./stats-collector":35,"./suite":36,"./test":37,"./utils":38,"_process":69,"escape-string-regexp":49,"path":42}],15:[function(require,module,exports){
2241
2248
  module.exports={
2242
2249
  "diff": true,
2243
2250
  "extension": ["js"],
@@ -2294,6 +2301,11 @@ exports = module.exports = Base;
2294
2301
 
2295
2302
  var isatty = tty.isatty(1) && tty.isatty(2);
2296
2303
 
2304
+ /**
2305
+ * Save log references to avoid tests interfering (see GH-3604).
2306
+ */
2307
+ var consoleLog = console.log;
2308
+
2297
2309
  /**
2298
2310
  * Enable coloring by default, except in the browser interface.
2299
2311
  */
@@ -2459,7 +2471,7 @@ var generateDiff = (exports.generateDiff = function(actual, expected) {
2459
2471
  * Error property
2460
2472
  */
2461
2473
  exports.list = function(failures) {
2462
- console.log();
2474
+ Base.consoleLog();
2463
2475
  failures.forEach(function(test, i) {
2464
2476
  // format
2465
2477
  var fmt =
@@ -2520,7 +2532,7 @@ exports.list = function(failures) {
2520
2532
  testTitle += str;
2521
2533
  });
2522
2534
 
2523
- console.log(fmt, i + 1, testTitle, msg, stack);
2535
+ Base.consoleLog(fmt, i + 1, testTitle, msg, stack);
2524
2536
  });
2525
2537
  };
2526
2538
 
@@ -2575,7 +2587,7 @@ Base.prototype.epilogue = function() {
2575
2587
  var stats = this.stats;
2576
2588
  var fmt;
2577
2589
 
2578
- console.log();
2590
+ Base.consoleLog();
2579
2591
 
2580
2592
  // passes
2581
2593
  fmt =
@@ -2583,26 +2595,26 @@ Base.prototype.epilogue = function() {
2583
2595
  color('green', ' %d passing') +
2584
2596
  color('light', ' (%s)');
2585
2597
 
2586
- console.log(fmt, stats.passes || 0, milliseconds(stats.duration));
2598
+ Base.consoleLog(fmt, stats.passes || 0, milliseconds(stats.duration));
2587
2599
 
2588
2600
  // pending
2589
2601
  if (stats.pending) {
2590
2602
  fmt = color('pending', ' ') + color('pending', ' %d pending');
2591
2603
 
2592
- console.log(fmt, stats.pending);
2604
+ Base.consoleLog(fmt, stats.pending);
2593
2605
  }
2594
2606
 
2595
2607
  // failures
2596
2608
  if (stats.failures) {
2597
2609
  fmt = color('fail', ' %d failing');
2598
2610
 
2599
- console.log(fmt, stats.failures);
2611
+ Base.consoleLog(fmt, stats.failures);
2600
2612
 
2601
2613
  Base.list(this.failures);
2602
- console.log();
2614
+ Base.consoleLog();
2603
2615
  }
2604
2616
 
2605
- console.log();
2617
+ Base.consoleLog();
2606
2618
  };
2607
2619
 
2608
2620
  /**
@@ -2755,10 +2767,12 @@ function sameType(a, b) {
2755
2767
  return objToString.call(a) === objToString.call(b);
2756
2768
  }
2757
2769
 
2770
+ Base.consoleLog = consoleLog;
2771
+
2758
2772
  Base.abstract = true;
2759
2773
 
2760
2774
  }).call(this,require('_process'))
2761
- },{"../runner":34,"../utils":38,"_process":70,"diff":48,"ms":60,"supports-color":40,"tty":4}],18:[function(require,module,exports){
2775
+ },{"../runner":34,"../utils":38,"_process":69,"diff":48,"ms":60,"supports-color":42,"tty":4}],18:[function(require,module,exports){
2762
2776
  'use strict';
2763
2777
  /**
2764
2778
  * @module Doc
@@ -2805,41 +2819,45 @@ function Doc(runner, options) {
2805
2819
  return;
2806
2820
  }
2807
2821
  ++indents;
2808
- console.log('%s<section class="suite">', indent());
2822
+ Base.consoleLog('%s<section class="suite">', indent());
2809
2823
  ++indents;
2810
- console.log('%s<h1>%s</h1>', indent(), utils.escape(suite.title));
2811
- console.log('%s<dl>', indent());
2824
+ Base.consoleLog('%s<h1>%s</h1>', indent(), utils.escape(suite.title));
2825
+ Base.consoleLog('%s<dl>', indent());
2812
2826
  });
2813
2827
 
2814
2828
  runner.on(EVENT_SUITE_END, function(suite) {
2815
2829
  if (suite.root) {
2816
2830
  return;
2817
2831
  }
2818
- console.log('%s</dl>', indent());
2832
+ Base.consoleLog('%s</dl>', indent());
2819
2833
  --indents;
2820
- console.log('%s</section>', indent());
2834
+ Base.consoleLog('%s</section>', indent());
2821
2835
  --indents;
2822
2836
  });
2823
2837
 
2824
2838
  runner.on(EVENT_TEST_PASS, function(test) {
2825
- console.log('%s <dt>%s</dt>', indent(), utils.escape(test.title));
2839
+ Base.consoleLog('%s <dt>%s</dt>', indent(), utils.escape(test.title));
2826
2840
  var code = utils.escape(utils.clean(test.body));
2827
- console.log('%s <dd><pre><code>%s</code></pre></dd>', indent(), code);
2841
+ Base.consoleLog('%s <dd><pre><code>%s</code></pre></dd>', indent(), code);
2828
2842
  });
2829
2843
 
2830
2844
  runner.on(EVENT_TEST_FAIL, function(test, err) {
2831
- console.log(
2845
+ Base.consoleLog(
2832
2846
  '%s <dt class="error">%s</dt>',
2833
2847
  indent(),
2834
2848
  utils.escape(test.title)
2835
2849
  );
2836
2850
  var code = utils.escape(utils.clean(test.body));
2837
- console.log(
2851
+ Base.consoleLog(
2838
2852
  '%s <dd class="error"><pre><code>%s</code></pre></dd>',
2839
2853
  indent(),
2840
2854
  code
2841
2855
  );
2842
- console.log('%s <dd class="error">%s</dd>', indent(), utils.escape(err));
2856
+ Base.consoleLog(
2857
+ '%s <dd class="error">%s</dd>',
2858
+ indent(),
2859
+ utils.escape(err)
2860
+ );
2843
2861
  });
2844
2862
  }
2845
2863
 
@@ -2917,7 +2935,7 @@ function Dot(runner, options) {
2917
2935
  });
2918
2936
 
2919
2937
  runner.once(EVENT_RUN_END, function() {
2920
- console.log();
2938
+ process.stdout.write('\n');
2921
2939
  self.epilogue();
2922
2940
  });
2923
2941
  }
@@ -2930,7 +2948,7 @@ inherits(Dot, Base);
2930
2948
  Dot.description = 'dot matrix representation';
2931
2949
 
2932
2950
  }).call(this,require('_process'))
2933
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],20:[function(require,module,exports){
2951
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],20:[function(require,module,exports){
2934
2952
  (function (global){
2935
2953
  'use strict';
2936
2954
 
@@ -3439,7 +3457,7 @@ function clean(test) {
3439
3457
  JSONStream.description = 'newline delimited JSON events';
3440
3458
 
3441
3459
  }).call(this,require('_process'))
3442
- },{"../runner":34,"./base":17,"_process":70}],23:[function(require,module,exports){
3460
+ },{"../runner":34,"./base":17,"_process":69}],23:[function(require,module,exports){
3443
3461
  (function (process){
3444
3462
  'use strict';
3445
3463
  /**
@@ -3578,7 +3596,7 @@ function errorJSON(err) {
3578
3596
  JSONReporter.description = 'single JSON object';
3579
3597
 
3580
3598
  }).call(this,require('_process'))
3581
- },{"../runner":34,"./base":17,"_process":70}],24:[function(require,module,exports){
3599
+ },{"../runner":34,"./base":17,"_process":69}],24:[function(require,module,exports){
3582
3600
  (function (process){
3583
3601
  'use strict';
3584
3602
  /**
@@ -3677,7 +3695,7 @@ function Landing(runner, options) {
3677
3695
 
3678
3696
  runner.once(EVENT_RUN_END, function() {
3679
3697
  cursor.show();
3680
- console.log();
3698
+ process.stdout.write('\n');
3681
3699
  self.epilogue();
3682
3700
  });
3683
3701
  }
@@ -3690,7 +3708,7 @@ inherits(Landing, Base);
3690
3708
  Landing.description = 'Unicode landing strip';
3691
3709
 
3692
3710
  }).call(this,require('_process'))
3693
- },{"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":70}],25:[function(require,module,exports){
3711
+ },{"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":69}],25:[function(require,module,exports){
3694
3712
  (function (process){
3695
3713
  'use strict';
3696
3714
  /**
@@ -3735,7 +3753,7 @@ function List(runner, options) {
3735
3753
  var n = 0;
3736
3754
 
3737
3755
  runner.on(EVENT_RUN_BEGIN, function() {
3738
- console.log();
3756
+ Base.consoleLog();
3739
3757
  });
3740
3758
 
3741
3759
  runner.on(EVENT_TEST_BEGIN, function(test) {
@@ -3744,7 +3762,7 @@ function List(runner, options) {
3744
3762
 
3745
3763
  runner.on(EVENT_TEST_PENDING, function(test) {
3746
3764
  var fmt = color('checkmark', ' -') + color('pending', ' %s');
3747
- console.log(fmt, test.fullTitle());
3765
+ Base.consoleLog(fmt, test.fullTitle());
3748
3766
  });
3749
3767
 
3750
3768
  runner.on(EVENT_TEST_PASS, function(test) {
@@ -3753,12 +3771,12 @@ function List(runner, options) {
3753
3771
  color('pass', ' %s: ') +
3754
3772
  color(test.speed, '%dms');
3755
3773
  cursor.CR();
3756
- console.log(fmt, test.fullTitle(), test.duration);
3774
+ Base.consoleLog(fmt, test.fullTitle(), test.duration);
3757
3775
  });
3758
3776
 
3759
3777
  runner.on(EVENT_TEST_FAIL, function(test) {
3760
3778
  cursor.CR();
3761
- console.log(color('fail', ' %d) %s'), ++n, test.fullTitle());
3779
+ Base.consoleLog(color('fail', ' %d) %s'), ++n, test.fullTitle());
3762
3780
  });
3763
3781
 
3764
3782
  runner.once(EVENT_RUN_END, self.epilogue.bind(self));
@@ -3772,7 +3790,7 @@ inherits(List, Base);
3772
3790
  List.description = 'like "spec" reporter but flat';
3773
3791
 
3774
3792
  }).call(this,require('_process'))
3775
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],26:[function(require,module,exports){
3793
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],26:[function(require,module,exports){
3776
3794
  (function (process){
3777
3795
  'use strict';
3778
3796
  /**
@@ -3888,7 +3906,7 @@ function Markdown(runner, options) {
3888
3906
  Markdown.description = 'GitHub Flavored Markdown';
3889
3907
 
3890
3908
  }).call(this,require('_process'))
3891
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],27:[function(require,module,exports){
3909
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],27:[function(require,module,exports){
3892
3910
  (function (process){
3893
3911
  'use strict';
3894
3912
  /**
@@ -3944,7 +3962,7 @@ inherits(Min, Base);
3944
3962
  Min.description = 'essentially just a summary';
3945
3963
 
3946
3964
  }).call(this,require('_process'))
3947
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],28:[function(require,module,exports){
3965
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],28:[function(require,module,exports){
3948
3966
  (function (process){
3949
3967
  'use strict';
3950
3968
  /**
@@ -4224,7 +4242,7 @@ function write(string) {
4224
4242
  NyanCat.description = '"nyan cat"';
4225
4243
 
4226
4244
  }).call(this,require('_process'))
4227
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],29:[function(require,module,exports){
4245
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],29:[function(require,module,exports){
4228
4246
  (function (process){
4229
4247
  'use strict';
4230
4248
  /**
@@ -4286,7 +4304,7 @@ function Progress(runner, options) {
4286
4304
 
4287
4305
  // tests started
4288
4306
  runner.on(EVENT_RUN_BEGIN, function() {
4289
- console.log();
4307
+ process.stdout.write('\n');
4290
4308
  cursor.hide();
4291
4309
  });
4292
4310
 
@@ -4319,7 +4337,7 @@ function Progress(runner, options) {
4319
4337
  // and the failures if any
4320
4338
  runner.once(EVENT_RUN_END, function() {
4321
4339
  cursor.show();
4322
- console.log();
4340
+ process.stdout.write('\n');
4323
4341
  self.epilogue();
4324
4342
  });
4325
4343
  }
@@ -4332,7 +4350,7 @@ inherits(Progress, Base);
4332
4350
  Progress.description = 'a progress bar';
4333
4351
 
4334
4352
  }).call(this,require('_process'))
4335
- },{"../runner":34,"../utils":38,"./base":17,"_process":70}],30:[function(require,module,exports){
4353
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69}],30:[function(require,module,exports){
4336
4354
  'use strict';
4337
4355
  /**
4338
4356
  * @module Spec
@@ -4381,24 +4399,24 @@ function Spec(runner, options) {
4381
4399
  }
4382
4400
 
4383
4401
  runner.on(EVENT_RUN_BEGIN, function() {
4384
- console.log();
4402
+ Base.consoleLog();
4385
4403
  });
4386
4404
 
4387
4405
  runner.on(EVENT_SUITE_BEGIN, function(suite) {
4388
4406
  ++indents;
4389
- console.log(color('suite', '%s%s'), indent(), suite.title);
4407
+ Base.consoleLog(color('suite', '%s%s'), indent(), suite.title);
4390
4408
  });
4391
4409
 
4392
4410
  runner.on(EVENT_SUITE_END, function() {
4393
4411
  --indents;
4394
4412
  if (indents === 1) {
4395
- console.log();
4413
+ Base.consoleLog();
4396
4414
  }
4397
4415
  });
4398
4416
 
4399
4417
  runner.on(EVENT_TEST_PENDING, function(test) {
4400
4418
  var fmt = indent() + color('pending', ' - %s');
4401
- console.log(fmt, test.title);
4419
+ Base.consoleLog(fmt, test.title);
4402
4420
  });
4403
4421
 
4404
4422
  runner.on(EVENT_TEST_PASS, function(test) {
@@ -4408,19 +4426,19 @@ function Spec(runner, options) {
4408
4426
  indent() +
4409
4427
  color('checkmark', ' ' + Base.symbols.ok) +
4410
4428
  color('pass', ' %s');
4411
- console.log(fmt, test.title);
4429
+ Base.consoleLog(fmt, test.title);
4412
4430
  } else {
4413
4431
  fmt =
4414
4432
  indent() +
4415
4433
  color('checkmark', ' ' + Base.symbols.ok) +
4416
4434
  color('pass', ' %s') +
4417
4435
  color(test.speed, ' (%dms)');
4418
- console.log(fmt, test.title, test.duration);
4436
+ Base.consoleLog(fmt, test.title, test.duration);
4419
4437
  }
4420
4438
  });
4421
4439
 
4422
4440
  runner.on(EVENT_TEST_FAIL, function(test) {
4423
- console.log(indent() + color('fail', ' %d) %s'), ++n, test.title);
4441
+ Base.consoleLog(indent() + color('fail', ' %d) %s'), ++n, test.title);
4424
4442
  });
4425
4443
 
4426
4444
  runner.once(EVENT_RUN_END, self.epilogue.bind(self));
@@ -4731,7 +4749,7 @@ inherits(TAP13Producer, TAPProducer);
4731
4749
  TAP.description = 'TAP-compatible output';
4732
4750
 
4733
4751
  }).call(this,require('_process'))
4734
- },{"../runner":34,"../utils":38,"./base":17,"_process":70,"util":90}],32:[function(require,module,exports){
4752
+ },{"../runner":34,"../utils":38,"./base":17,"_process":69,"util":89}],32:[function(require,module,exports){
4735
4753
  (function (process,global){
4736
4754
  'use strict';
4737
4755
  /**
@@ -4877,7 +4895,7 @@ XUnit.prototype.write = function(line) {
4877
4895
  } else if (typeof process === 'object' && process.stdout) {
4878
4896
  process.stdout.write(line + '\n');
4879
4897
  } else {
4880
- console.log(line);
4898
+ Base.consoleLog(line);
4881
4899
  }
4882
4900
  };
4883
4901
 
@@ -4951,7 +4969,7 @@ function tag(name, attrs, close, content) {
4951
4969
  XUnit.description = 'XUnit-compatible XML output';
4952
4970
 
4953
4971
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4954
- },{"../errors":6,"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":70,"fs":40,"mkdirp":59,"path":40}],33:[function(require,module,exports){
4972
+ },{"../errors":6,"../runnable":33,"../runner":34,"../utils":38,"./base":17,"_process":69,"fs":42,"mkdirp":59,"path":42}],33:[function(require,module,exports){
4955
4973
  (function (global){
4956
4974
  'use strict';
4957
4975
 
@@ -6504,7 +6522,7 @@ Runner.constants = constants;
6504
6522
  */
6505
6523
 
6506
6524
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6507
- },{"./errors":6,"./pending":16,"./runnable":33,"./suite":36,"./utils":38,"_process":70,"debug":45,"events":50,"util":90}],35:[function(require,module,exports){
6525
+ },{"./errors":6,"./pending":16,"./runnable":33,"./suite":36,"./utils":38,"_process":69,"debug":45,"events":50,"util":89}],35:[function(require,module,exports){
6508
6526
  (function (global){
6509
6527
  'use strict';
6510
6528
 
@@ -7854,32 +7872,41 @@ function isHiddenOnUnix(pathname) {
7854
7872
  *
7855
7873
  * @public
7856
7874
  * @memberof Mocha.utils
7857
- * @todo Fix extension handling
7858
7875
  * @param {string} filepath - Base path to start searching from.
7859
- * @param {string[]} extensions - File extensions to look for.
7860
- * @param {boolean} recursive - Whether to recurse into subdirectories.
7876
+ * @param {string[]} [extensions=[]] - File extensions to look for.
7877
+ * @param {boolean} [recursive=false] - Whether to recurse into subdirectories.
7861
7878
  * @return {string[]} An array of paths.
7862
7879
  * @throws {Error} if no files match pattern.
7863
7880
  * @throws {TypeError} if `filepath` is directory and `extensions` not provided.
7864
7881
  */
7865
7882
  exports.lookupFiles = function lookupFiles(filepath, extensions, recursive) {
7883
+ extensions = extensions || [];
7884
+ recursive = recursive || false;
7866
7885
  var files = [];
7867
7886
  var stat;
7868
7887
 
7869
7888
  if (!fs.existsSync(filepath)) {
7870
- if (fs.existsSync(filepath + '.js')) {
7871
- filepath += '.js';
7889
+ var pattern;
7890
+ if (glob.hasMagic(filepath)) {
7891
+ // Handle glob as is without extensions
7892
+ pattern = filepath;
7872
7893
  } else {
7873
- // Handle glob
7874
- files = glob.sync(filepath);
7875
- if (!files.length) {
7876
- throw createNoFilesMatchPatternError(
7877
- 'Cannot find any files matching pattern ' + exports.dQuote(filepath),
7878
- filepath
7879
- );
7880
- }
7881
- return files;
7894
+ // glob pattern e.g. 'filepath+(.js|.ts)'
7895
+ var strExtensions = extensions
7896
+ .map(function(v) {
7897
+ return '.' + v;
7898
+ })
7899
+ .join('|');
7900
+ pattern = filepath + '+(' + strExtensions + ')';
7901
+ }
7902
+ files = glob.sync(pattern, {nodir: true});
7903
+ if (!files.length) {
7904
+ throw createNoFilesMatchPatternError(
7905
+ 'Cannot find any files matching pattern ' + exports.dQuote(filepath),
7906
+ filepath
7907
+ );
7882
7908
  }
7909
+ return files;
7883
7910
  }
7884
7911
 
7885
7912
  // Handle file
@@ -7910,7 +7937,7 @@ exports.lookupFiles = function lookupFiles(filepath, extensions, recursive) {
7910
7937
  // ignore error
7911
7938
  return;
7912
7939
  }
7913
- if (!extensions) {
7940
+ if (!extensions.length) {
7914
7941
  throw createMissingArgumentError(
7915
7942
  util.format(
7916
7943
  'Argument %s required when argument %s is a directory',
@@ -8006,7 +8033,8 @@ exports.stackTraceFilter = function() {
8006
8033
  function isMochaInternal(line) {
8007
8034
  return (
8008
8035
  ~line.indexOf('node_modules' + slash + 'mocha' + slash) ||
8009
- ~line.indexOf(slash + 'mocha.js')
8036
+ ~line.indexOf(slash + 'mocha.js') ||
8037
+ ~line.indexOf(slash + 'mocha.min.js')
8010
8038
  );
8011
8039
  }
8012
8040
 
@@ -8189,7 +8217,7 @@ exports.defineConstants = function(obj) {
8189
8217
  };
8190
8218
 
8191
8219
  }).call(this,require('_process'),require("buffer").Buffer)
8192
- },{"./errors":6,"_process":70,"buffer":43,"debug":45,"fs":40,"glob":40,"he":54,"object.assign":65,"path":40,"util":90}],39:[function(require,module,exports){
8220
+ },{"./errors":6,"_process":69,"buffer":43,"debug":45,"fs":42,"glob":42,"he":54,"object.assign":65,"path":42,"util":89}],39:[function(require,module,exports){
8193
8221
  'use strict'
8194
8222
 
8195
8223
  exports.byteLength = byteLength
@@ -8373,7 +8401,7 @@ BrowserStdout.prototype._write = function(chunks, encoding, cb) {
8373
8401
  }
8374
8402
 
8375
8403
  }).call(this,require('_process'))
8376
- },{"_process":70,"stream":85,"util":90}],42:[function(require,module,exports){
8404
+ },{"_process":69,"stream":84,"util":89}],42:[function(require,module,exports){
8377
8405
  arguments[4][40][0].apply(exports,arguments)
8378
8406
  },{"dup":40}],43:[function(require,module,exports){
8379
8407
  (function (Buffer){
@@ -10451,7 +10479,7 @@ formatters.j = function (v) {
10451
10479
 
10452
10480
 
10453
10481
  }).call(this,require('_process'))
10454
- },{"./common":46,"_process":70}],46:[function(require,module,exports){
10482
+ },{"./common":46,"_process":69}],46:[function(require,module,exports){
10455
10483
  "use strict";
10456
10484
 
10457
10485
  /**
@@ -13839,7 +13867,7 @@ mkdirP.sync = function sync (p, opts, made) {
13839
13867
  };
13840
13868
 
13841
13869
  }).call(this,require('_process'))
13842
- },{"_process":70,"fs":42,"path":68}],60:[function(require,module,exports){
13870
+ },{"_process":69,"fs":42,"path":42}],60:[function(require,module,exports){
13843
13871
  /**
13844
13872
  * Helpers.
13845
13873
  */
@@ -14311,312 +14339,6 @@ module.exports = function shimAssign() {
14311
14339
 
14312
14340
  },{"./polyfill":66,"define-properties":47}],68:[function(require,module,exports){
14313
14341
  (function (process){
14314
- // .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
14315
- // backported and transplited with Babel, with backwards-compat fixes
14316
-
14317
- // Copyright Joyent, Inc. and other Node contributors.
14318
- //
14319
- // Permission is hereby granted, free of charge, to any person obtaining a
14320
- // copy of this software and associated documentation files (the
14321
- // "Software"), to deal in the Software without restriction, including
14322
- // without limitation the rights to use, copy, modify, merge, publish,
14323
- // distribute, sublicense, and/or sell copies of the Software, and to permit
14324
- // persons to whom the Software is furnished to do so, subject to the
14325
- // following conditions:
14326
- //
14327
- // The above copyright notice and this permission notice shall be included
14328
- // in all copies or substantial portions of the Software.
14329
- //
14330
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
14331
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14332
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
14333
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
14334
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14335
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
14336
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
14337
-
14338
- // resolves . and .. elements in a path array with directory names there
14339
- // must be no slashes, empty elements, or device names (c:\) in the array
14340
- // (so also no leading and trailing slashes - it does not distinguish
14341
- // relative and absolute paths)
14342
- function normalizeArray(parts, allowAboveRoot) {
14343
- // if the path tries to go above the root, `up` ends up > 0
14344
- var up = 0;
14345
- for (var i = parts.length - 1; i >= 0; i--) {
14346
- var last = parts[i];
14347
- if (last === '.') {
14348
- parts.splice(i, 1);
14349
- } else if (last === '..') {
14350
- parts.splice(i, 1);
14351
- up++;
14352
- } else if (up) {
14353
- parts.splice(i, 1);
14354
- up--;
14355
- }
14356
- }
14357
-
14358
- // if the path is allowed to go above the root, restore leading ..s
14359
- if (allowAboveRoot) {
14360
- for (; up--; up) {
14361
- parts.unshift('..');
14362
- }
14363
- }
14364
-
14365
- return parts;
14366
- }
14367
-
14368
- // path.resolve([from ...], to)
14369
- // posix version
14370
- exports.resolve = function() {
14371
- var resolvedPath = '',
14372
- resolvedAbsolute = false;
14373
-
14374
- for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
14375
- var path = (i >= 0) ? arguments[i] : process.cwd();
14376
-
14377
- // Skip empty and invalid entries
14378
- if (typeof path !== 'string') {
14379
- throw new TypeError('Arguments to path.resolve must be strings');
14380
- } else if (!path) {
14381
- continue;
14382
- }
14383
-
14384
- resolvedPath = path + '/' + resolvedPath;
14385
- resolvedAbsolute = path.charAt(0) === '/';
14386
- }
14387
-
14388
- // At this point the path should be resolved to a full absolute path, but
14389
- // handle relative paths to be safe (might happen when process.cwd() fails)
14390
-
14391
- // Normalize the path
14392
- resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {
14393
- return !!p;
14394
- }), !resolvedAbsolute).join('/');
14395
-
14396
- return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';
14397
- };
14398
-
14399
- // path.normalize(path)
14400
- // posix version
14401
- exports.normalize = function(path) {
14402
- var isAbsolute = exports.isAbsolute(path),
14403
- trailingSlash = substr(path, -1) === '/';
14404
-
14405
- // Normalize the path
14406
- path = normalizeArray(filter(path.split('/'), function(p) {
14407
- return !!p;
14408
- }), !isAbsolute).join('/');
14409
-
14410
- if (!path && !isAbsolute) {
14411
- path = '.';
14412
- }
14413
- if (path && trailingSlash) {
14414
- path += '/';
14415
- }
14416
-
14417
- return (isAbsolute ? '/' : '') + path;
14418
- };
14419
-
14420
- // posix version
14421
- exports.isAbsolute = function(path) {
14422
- return path.charAt(0) === '/';
14423
- };
14424
-
14425
- // posix version
14426
- exports.join = function() {
14427
- var paths = Array.prototype.slice.call(arguments, 0);
14428
- return exports.normalize(filter(paths, function(p, index) {
14429
- if (typeof p !== 'string') {
14430
- throw new TypeError('Arguments to path.join must be strings');
14431
- }
14432
- return p;
14433
- }).join('/'));
14434
- };
14435
-
14436
-
14437
- // path.relative(from, to)
14438
- // posix version
14439
- exports.relative = function(from, to) {
14440
- from = exports.resolve(from).substr(1);
14441
- to = exports.resolve(to).substr(1);
14442
-
14443
- function trim(arr) {
14444
- var start = 0;
14445
- for (; start < arr.length; start++) {
14446
- if (arr[start] !== '') break;
14447
- }
14448
-
14449
- var end = arr.length - 1;
14450
- for (; end >= 0; end--) {
14451
- if (arr[end] !== '') break;
14452
- }
14453
-
14454
- if (start > end) return [];
14455
- return arr.slice(start, end - start + 1);
14456
- }
14457
-
14458
- var fromParts = trim(from.split('/'));
14459
- var toParts = trim(to.split('/'));
14460
-
14461
- var length = Math.min(fromParts.length, toParts.length);
14462
- var samePartsLength = length;
14463
- for (var i = 0; i < length; i++) {
14464
- if (fromParts[i] !== toParts[i]) {
14465
- samePartsLength = i;
14466
- break;
14467
- }
14468
- }
14469
-
14470
- var outputParts = [];
14471
- for (var i = samePartsLength; i < fromParts.length; i++) {
14472
- outputParts.push('..');
14473
- }
14474
-
14475
- outputParts = outputParts.concat(toParts.slice(samePartsLength));
14476
-
14477
- return outputParts.join('/');
14478
- };
14479
-
14480
- exports.sep = '/';
14481
- exports.delimiter = ':';
14482
-
14483
- exports.dirname = function (path) {
14484
- if (typeof path !== 'string') path = path + '';
14485
- if (path.length === 0) return '.';
14486
- var code = path.charCodeAt(0);
14487
- var hasRoot = code === 47 /*/*/;
14488
- var end = -1;
14489
- var matchedSlash = true;
14490
- for (var i = path.length - 1; i >= 1; --i) {
14491
- code = path.charCodeAt(i);
14492
- if (code === 47 /*/*/) {
14493
- if (!matchedSlash) {
14494
- end = i;
14495
- break;
14496
- }
14497
- } else {
14498
- // We saw the first non-path separator
14499
- matchedSlash = false;
14500
- }
14501
- }
14502
-
14503
- if (end === -1) return hasRoot ? '/' : '.';
14504
- if (hasRoot && end === 1) {
14505
- // return '//';
14506
- // Backwards-compat fix:
14507
- return '/';
14508
- }
14509
- return path.slice(0, end);
14510
- };
14511
-
14512
- function basename(path) {
14513
- if (typeof path !== 'string') path = path + '';
14514
-
14515
- var start = 0;
14516
- var end = -1;
14517
- var matchedSlash = true;
14518
- var i;
14519
-
14520
- for (i = path.length - 1; i >= 0; --i) {
14521
- if (path.charCodeAt(i) === 47 /*/*/) {
14522
- // If we reached a path separator that was not part of a set of path
14523
- // separators at the end of the string, stop now
14524
- if (!matchedSlash) {
14525
- start = i + 1;
14526
- break;
14527
- }
14528
- } else if (end === -1) {
14529
- // We saw the first non-path separator, mark this as the end of our
14530
- // path component
14531
- matchedSlash = false;
14532
- end = i + 1;
14533
- }
14534
- }
14535
-
14536
- if (end === -1) return '';
14537
- return path.slice(start, end);
14538
- }
14539
-
14540
- // Uses a mixed approach for backwards-compatibility, as ext behavior changed
14541
- // in new Node.js versions, so only basename() above is backported here
14542
- exports.basename = function (path, ext) {
14543
- var f = basename(path);
14544
- if (ext && f.substr(-1 * ext.length) === ext) {
14545
- f = f.substr(0, f.length - ext.length);
14546
- }
14547
- return f;
14548
- };
14549
-
14550
- exports.extname = function (path) {
14551
- if (typeof path !== 'string') path = path + '';
14552
- var startDot = -1;
14553
- var startPart = 0;
14554
- var end = -1;
14555
- var matchedSlash = true;
14556
- // Track the state of characters (if any) we see before our first dot and
14557
- // after any path separator we find
14558
- var preDotState = 0;
14559
- for (var i = path.length - 1; i >= 0; --i) {
14560
- var code = path.charCodeAt(i);
14561
- if (code === 47 /*/*/) {
14562
- // If we reached a path separator that was not part of a set of path
14563
- // separators at the end of the string, stop now
14564
- if (!matchedSlash) {
14565
- startPart = i + 1;
14566
- break;
14567
- }
14568
- continue;
14569
- }
14570
- if (end === -1) {
14571
- // We saw the first non-path separator, mark this as the end of our
14572
- // extension
14573
- matchedSlash = false;
14574
- end = i + 1;
14575
- }
14576
- if (code === 46 /*.*/) {
14577
- // If this is our first dot, mark it as the start of our extension
14578
- if (startDot === -1)
14579
- startDot = i;
14580
- else if (preDotState !== 1)
14581
- preDotState = 1;
14582
- } else if (startDot !== -1) {
14583
- // We saw a non-dot and non-path separator before our dot, so we should
14584
- // have a good chance at having a non-empty extension
14585
- preDotState = -1;
14586
- }
14587
- }
14588
-
14589
- if (startDot === -1 || end === -1 ||
14590
- // We saw a non-dot character immediately before the dot
14591
- preDotState === 0 ||
14592
- // The (right-most) trimmed path component is exactly '..'
14593
- preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
14594
- return '';
14595
- }
14596
- return path.slice(startDot, end);
14597
- };
14598
-
14599
- function filter (xs, f) {
14600
- if (xs.filter) return xs.filter(f);
14601
- var res = [];
14602
- for (var i = 0; i < xs.length; i++) {
14603
- if (f(xs[i], i, xs)) res.push(xs[i]);
14604
- }
14605
- return res;
14606
- }
14607
-
14608
- // String.prototype.substr - negative index don't work in IE8
14609
- var substr = 'ab'.substr(-1) === 'b'
14610
- ? function (str, start, len) { return str.substr(start, len) }
14611
- : function (str, start, len) {
14612
- if (start < 0) start = str.length + start;
14613
- return str.substr(start, len);
14614
- }
14615
- ;
14616
-
14617
- }).call(this,require('_process'))
14618
- },{"_process":70}],69:[function(require,module,exports){
14619
- (function (process){
14620
14342
  'use strict';
14621
14343
 
14622
14344
  if (!process.version ||
@@ -14663,7 +14385,7 @@ function nextTick(fn, arg1, arg2, arg3) {
14663
14385
 
14664
14386
 
14665
14387
  }).call(this,require('_process'))
14666
- },{"_process":70}],70:[function(require,module,exports){
14388
+ },{"_process":69}],69:[function(require,module,exports){
14667
14389
  // shim for using process in browser
14668
14390
  var process = module.exports = {};
14669
14391
 
@@ -14849,10 +14571,10 @@ process.chdir = function (dir) {
14849
14571
  };
14850
14572
  process.umask = function() { return 0; };
14851
14573
 
14852
- },{}],71:[function(require,module,exports){
14574
+ },{}],70:[function(require,module,exports){
14853
14575
  module.exports = require('./lib/_stream_duplex.js');
14854
14576
 
14855
- },{"./lib/_stream_duplex.js":72}],72:[function(require,module,exports){
14577
+ },{"./lib/_stream_duplex.js":71}],71:[function(require,module,exports){
14856
14578
  // Copyright Joyent, Inc. and other Node contributors.
14857
14579
  //
14858
14580
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -14984,7 +14706,7 @@ Duplex.prototype._destroy = function (err, cb) {
14984
14706
 
14985
14707
  pna.nextTick(cb, err);
14986
14708
  };
14987
- },{"./_stream_readable":74,"./_stream_writable":76,"core-util-is":44,"inherits":56,"process-nextick-args":69}],73:[function(require,module,exports){
14709
+ },{"./_stream_readable":73,"./_stream_writable":75,"core-util-is":44,"inherits":56,"process-nextick-args":68}],72:[function(require,module,exports){
14988
14710
  // Copyright Joyent, Inc. and other Node contributors.
14989
14711
  //
14990
14712
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -15032,7 +14754,7 @@ function PassThrough(options) {
15032
14754
  PassThrough.prototype._transform = function (chunk, encoding, cb) {
15033
14755
  cb(null, chunk);
15034
14756
  };
15035
- },{"./_stream_transform":75,"core-util-is":44,"inherits":56}],74:[function(require,module,exports){
14757
+ },{"./_stream_transform":74,"core-util-is":44,"inherits":56}],73:[function(require,module,exports){
15036
14758
  (function (process,global){
15037
14759
  // Copyright Joyent, Inc. and other Node contributors.
15038
14760
  //
@@ -16054,7 +15776,7 @@ function indexOf(xs, x) {
16054
15776
  return -1;
16055
15777
  }
16056
15778
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
16057
- },{"./_stream_duplex":72,"./internal/streams/BufferList":77,"./internal/streams/destroy":78,"./internal/streams/stream":79,"_process":70,"core-util-is":44,"events":50,"inherits":56,"isarray":58,"process-nextick-args":69,"safe-buffer":84,"string_decoder/":86,"util":40}],75:[function(require,module,exports){
15779
+ },{"./_stream_duplex":71,"./internal/streams/BufferList":76,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":69,"core-util-is":44,"events":50,"inherits":56,"isarray":58,"process-nextick-args":68,"safe-buffer":83,"string_decoder/":85,"util":40}],74:[function(require,module,exports){
16058
15780
  // Copyright Joyent, Inc. and other Node contributors.
16059
15781
  //
16060
15782
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -16269,7 +15991,7 @@ function done(stream, er, data) {
16269
15991
 
16270
15992
  return stream.push(null);
16271
15993
  }
16272
- },{"./_stream_duplex":72,"core-util-is":44,"inherits":56}],76:[function(require,module,exports){
15994
+ },{"./_stream_duplex":71,"core-util-is":44,"inherits":56}],75:[function(require,module,exports){
16273
15995
  (function (process,global,setImmediate){
16274
15996
  // Copyright Joyent, Inc. and other Node contributors.
16275
15997
  //
@@ -16959,7 +16681,7 @@ Writable.prototype._destroy = function (err, cb) {
16959
16681
  cb(err);
16960
16682
  };
16961
16683
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("timers").setImmediate)
16962
- },{"./_stream_duplex":72,"./internal/streams/destroy":78,"./internal/streams/stream":79,"_process":70,"core-util-is":44,"inherits":56,"process-nextick-args":69,"safe-buffer":84,"timers":87,"util-deprecate":88}],77:[function(require,module,exports){
16684
+ },{"./_stream_duplex":71,"./internal/streams/destroy":77,"./internal/streams/stream":78,"_process":69,"core-util-is":44,"inherits":56,"process-nextick-args":68,"safe-buffer":83,"timers":86,"util-deprecate":87}],76:[function(require,module,exports){
16963
16685
  'use strict';
16964
16686
 
16965
16687
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -17039,7 +16761,7 @@ if (util && util.inspect && util.inspect.custom) {
17039
16761
  return this.constructor.name + ' ' + obj;
17040
16762
  };
17041
16763
  }
17042
- },{"safe-buffer":84,"util":40}],78:[function(require,module,exports){
16764
+ },{"safe-buffer":83,"util":40}],77:[function(require,module,exports){
17043
16765
  'use strict';
17044
16766
 
17045
16767
  /*<replacement>*/
@@ -17114,13 +16836,13 @@ module.exports = {
17114
16836
  destroy: destroy,
17115
16837
  undestroy: undestroy
17116
16838
  };
17117
- },{"process-nextick-args":69}],79:[function(require,module,exports){
16839
+ },{"process-nextick-args":68}],78:[function(require,module,exports){
17118
16840
  module.exports = require('events').EventEmitter;
17119
16841
 
17120
- },{"events":50}],80:[function(require,module,exports){
16842
+ },{"events":50}],79:[function(require,module,exports){
17121
16843
  module.exports = require('./readable').PassThrough
17122
16844
 
17123
- },{"./readable":81}],81:[function(require,module,exports){
16845
+ },{"./readable":80}],80:[function(require,module,exports){
17124
16846
  exports = module.exports = require('./lib/_stream_readable.js');
17125
16847
  exports.Stream = exports;
17126
16848
  exports.Readable = exports;
@@ -17129,13 +16851,13 @@ exports.Duplex = require('./lib/_stream_duplex.js');
17129
16851
  exports.Transform = require('./lib/_stream_transform.js');
17130
16852
  exports.PassThrough = require('./lib/_stream_passthrough.js');
17131
16853
 
17132
- },{"./lib/_stream_duplex.js":72,"./lib/_stream_passthrough.js":73,"./lib/_stream_readable.js":74,"./lib/_stream_transform.js":75,"./lib/_stream_writable.js":76}],82:[function(require,module,exports){
16854
+ },{"./lib/_stream_duplex.js":71,"./lib/_stream_passthrough.js":72,"./lib/_stream_readable.js":73,"./lib/_stream_transform.js":74,"./lib/_stream_writable.js":75}],81:[function(require,module,exports){
17133
16855
  module.exports = require('./readable').Transform
17134
16856
 
17135
- },{"./readable":81}],83:[function(require,module,exports){
16857
+ },{"./readable":80}],82:[function(require,module,exports){
17136
16858
  module.exports = require('./lib/_stream_writable.js');
17137
16859
 
17138
- },{"./lib/_stream_writable.js":76}],84:[function(require,module,exports){
16860
+ },{"./lib/_stream_writable.js":75}],83:[function(require,module,exports){
17139
16861
  /* eslint-disable node/no-deprecated-api */
17140
16862
  var buffer = require('buffer')
17141
16863
  var Buffer = buffer.Buffer
@@ -17199,7 +16921,7 @@ SafeBuffer.allocUnsafeSlow = function (size) {
17199
16921
  return buffer.SlowBuffer(size)
17200
16922
  }
17201
16923
 
17202
- },{"buffer":43}],85:[function(require,module,exports){
16924
+ },{"buffer":43}],84:[function(require,module,exports){
17203
16925
  // Copyright Joyent, Inc. and other Node contributors.
17204
16926
  //
17205
16927
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -17328,7 +17050,7 @@ Stream.prototype.pipe = function(dest, options) {
17328
17050
  return dest;
17329
17051
  };
17330
17052
 
17331
- },{"events":50,"inherits":56,"readable-stream/duplex.js":71,"readable-stream/passthrough.js":80,"readable-stream/readable.js":81,"readable-stream/transform.js":82,"readable-stream/writable.js":83}],86:[function(require,module,exports){
17053
+ },{"events":50,"inherits":56,"readable-stream/duplex.js":70,"readable-stream/passthrough.js":79,"readable-stream/readable.js":80,"readable-stream/transform.js":81,"readable-stream/writable.js":82}],85:[function(require,module,exports){
17332
17054
  // Copyright Joyent, Inc. and other Node contributors.
17333
17055
  //
17334
17056
  // Permission is hereby granted, free of charge, to any person obtaining a
@@ -17625,7 +17347,7 @@ function simpleWrite(buf) {
17625
17347
  function simpleEnd(buf) {
17626
17348
  return buf && buf.length ? this.write(buf) : '';
17627
17349
  }
17628
- },{"safe-buffer":84}],87:[function(require,module,exports){
17350
+ },{"safe-buffer":83}],86:[function(require,module,exports){
17629
17351
  (function (setImmediate,clearImmediate){
17630
17352
  var nextTick = require('process/browser.js').nextTick;
17631
17353
  var apply = Function.prototype.apply;
@@ -17704,7 +17426,7 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
17704
17426
  delete immediateIds[id];
17705
17427
  };
17706
17428
  }).call(this,require("timers").setImmediate,require("timers").clearImmediate)
17707
- },{"process/browser.js":70,"timers":87}],88:[function(require,module,exports){
17429
+ },{"process/browser.js":69,"timers":86}],87:[function(require,module,exports){
17708
17430
  (function (global){
17709
17431
 
17710
17432
  /**
@@ -17775,14 +17497,14 @@ function config (name) {
17775
17497
  }
17776
17498
 
17777
17499
  }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
17778
- },{}],89:[function(require,module,exports){
17500
+ },{}],88:[function(require,module,exports){
17779
17501
  module.exports = function isBuffer(arg) {
17780
17502
  return arg && typeof arg === 'object'
17781
17503
  && typeof arg.copy === 'function'
17782
17504
  && typeof arg.fill === 'function'
17783
17505
  && typeof arg.readUInt8 === 'function';
17784
17506
  }
17785
- },{}],90:[function(require,module,exports){
17507
+ },{}],89:[function(require,module,exports){
17786
17508
  (function (process,global){
17787
17509
  // Copyright Joyent, Inc. and other Node contributors.
17788
17510
  //
@@ -18372,10 +18094,10 @@ function hasOwnProperty(obj, prop) {
18372
18094
  }
18373
18095
 
18374
18096
  }).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
18375
- },{"./support/isBuffer":89,"_process":70,"inherits":56}],91:[function(require,module,exports){
18097
+ },{"./support/isBuffer":88,"_process":69,"inherits":56}],90:[function(require,module,exports){
18376
18098
  module.exports={
18377
18099
  "name": "mocha",
18378
- "version": "6.1.1",
18100
+ "version": "6.2.0",
18379
18101
  "homepage": "https://mochajs.org/",
18380
18102
  "notifyLogo": "https://ibin.co/4QuRuGjXvl36.png"
18381
18103
  }