mocha-compat 3.5.5 → 3.6.0-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.
Files changed (5) hide show
  1. package/index.js +3 -0
  2. package/lib/mocha.js +15 -15
  3. package/mocha.js +2522 -2111
  4. package/package.json +21 -22
  5. package/CHANGELOG.md +0 -1711
package/index.js CHANGED
@@ -1,3 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ const mock = require('mock-require-lazy');
4
+ mock('glob', require('./vendor/glob/glob'));
5
+
3
6
  module.exports = require('./lib/mocha');
package/lib/mocha.js CHANGED
@@ -240,21 +240,21 @@ Mocha.prototype.loadFiles = function (fn) {
240
240
  * @api private
241
241
  */
242
242
  Mocha.prototype._growl = function (runner, reporter) {
243
- var notify = require('growl');
244
-
245
- runner.on('end', function () {
246
- var stats = reporter.stats;
247
- if (stats.failures) {
248
- var msg = stats.failures + ' of ' + runner.total + ' tests failed';
249
- notify(msg, { name: 'mocha', title: 'Failed', image: image('error') });
250
- } else {
251
- notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
252
- name: 'mocha',
253
- title: 'Passed',
254
- image: image('ok')
255
- });
256
- }
257
- });
243
+ // var notify = require('growl');
244
+
245
+ // runner.on('end', function () {
246
+ // var stats = reporter.stats;
247
+ // if (stats.failures) {
248
+ // var msg = stats.failures + ' of ' + runner.total + ' tests failed';
249
+ // notify(msg, { name: 'mocha', title: 'Failed', image: image('error') });
250
+ // } else {
251
+ // notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
252
+ // name: 'mocha',
253
+ // title: 'Passed',
254
+ // image: image('ok')
255
+ // });
256
+ // }
257
+ // });
258
258
  };
259
259
 
260
260
  /**