mocha-compat 3.5.5 → 3.6.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/index.js +3 -0
- package/lib/mocha.js +15 -15
- package/mocha.js +2522 -2111
- package/package.json +21 -22
- package/CHANGELOG.md +0 -1711
package/index.js
CHANGED
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
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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
|
/**
|