Skip to content

armgit / mocha

Public Imported from GitHub
0

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

misc

TJ Holowaychukd5ab62296f2f
diff --git a/bin/_mocha b/bin/_mocha
index c781dd86..d80a060d 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -261,6 +261,8 @@ function growl(runner, reporter) {
});
}
+// say(1) support
+
function say(runner, reporter) {
var say = require('say');
@@ -273,6 +275,7 @@ function say(runner, reporter) {
} else {
msg = stats.passes + ' tests passed in ' + stats.duration + 'ms';
}
+
say.speak('string' == typeof program.say ? program.say : 'Alex', msg);
});
}