Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed spec error reporting

Tj Holowaychuk585614407f61
diff --git a/lib/reporters/spec.js b/lib/reporters/spec.js
index b322fa82..43cd3f7c 100644
--- a/lib/reporters/spec.js
+++ b/lib/reporters/spec.js
@@ -69,7 +69,7 @@ function Spec(runner) {
});
runner.on('fail', function(test, err){
- console.log('\r' + color('fail', ' %d) %s'), n++, test.title);
+ console.log('\r' + indent() + color('fail', ' %d) %s'), n++, test.title);
});
runner.on('end', self.epilogue.bind(self));