Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Fix image paths for growl when running through JavaScript API

László Bácsi42ef2c72ec25
diff --git a/lib/mocha.js b/lib/mocha.js
index 6625d8e5..5c377c57 100644
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -1,4 +1,3 @@
-
/*!
* mocha
* Copyright(c) 2011 TJ Holowaychuk <[email protected]>
@@ -146,11 +145,11 @@ Mocha.prototype.growl = function(runner, reporter) {
var stats = reporter.stats;
if (stats.failures) {
var msg = stats.failures + ' of ' + runner.total + ' tests failed';
- notify(msg, { title: 'Failed', image: image('fail') });
+ notify(msg, { title: 'Failed', image: image('error') });
} else {
notify(stats.passes + ' tests passed in ' + stats.duration + 'ms', {
title: 'Passed'
- , image: image('pass')
+ , image: image('ok')
});
}
});