Skip to content

armgit / mocha

Public Imported from GitHub
0

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

removed --say

Tj Holowaychuke73e0ea7be07
diff --git a/bin/_mocha b/bin/_mocha
index 25abf7c7..1343f863 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -48,7 +48,6 @@ program
.option('-C, --no-colors', 'force disabling of colors')
.option('-c, --colors', 'force enabling of colors')
.option('-G, --growl', 'enable growl notification support')
- .option('-S, --say [voice]', 'enable say notification support')
.option('-d, --debug', "enable node's debugger")
.option('-b, --bail', "bail after first test failure")
.option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])
@@ -246,7 +245,6 @@ function run(suite, fn) {
if (program.ignoreLeaks) runner.ignoreLeaks = true;
if (program.grep) runner.grep(new RegExp(program.grep));
if (program.growl) growl(runner, reporter);
- if (program.say) say(runner, reporter);
runner.run(fn);
}
@@ -269,25 +267,6 @@ function growl(runner, reporter) {
});
}
-// say(1) support
-
-function say(runner, reporter) {
- var say = require('say');
-
- runner.on('end', function(){
- var stats = reporter.stats
- , msg;
-
- if (stats.failures) {
- msg = stats.failures + ' of ' + runner.total + ' tests failed';
- } else {
- msg = stats.passes + ' tests passed in ' + stats.duration + 'ms';
- }
-
- say.speak('string' == typeof program.say ? program.say : 'Alex', msg);
- });
-}
-
/**
* Parse list.
*/
diff --git a/package.json b/package.json
index 1eeff8d4..93d37d0c 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,6 @@
"commander": "0.5.1"
, "growl": "1.4.x"
, "debug": "*"
- , "say": "0.5.x"
}
, "devDependencies": {
"should": "0.3.x"