Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Removed duplicate test output for multi-line specs

ChrisWren84076ae719a8
diff --git a/lib/reporters/spec.js b/lib/reporters/spec.js
index cd97261c..ada25c3e 100644
--- a/lib/reporters/spec.js
+++ b/lib/reporters/spec.js
@@ -46,10 +46,6 @@ function Spec(runner) {
if (1 == indents) console.log();
});
- runner.on('test', function(test){
- process.stdout.write(indent() + color('pass', ' ◦ ' + test.title + ': '));
- });
-
runner.on('pending', function(test){
var fmt = indent() + color('pending', ' - %s');
console.log(fmt, test.title);