Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Fixed dot reporter whitespace

Tj Holowaychuk16e63285147b
diff --git a/lib/reporters/dot.js b/lib/reporters/dot.js
index 2995b7b9..72396da3 100644
--- a/lib/reporters/dot.js
+++ b/lib/reporters/dot.js
@@ -44,7 +44,10 @@ function Dot(runner) {
process.stdout.write(color('fail', '.'));
});
- runner.on('end', self.epilogue.bind(self));
+ runner.on('end', function(){
+ console.log();
+ self.epilogue();
+ });
}
/**