Skip to content

armgit / mocha

Public Imported from GitHub
0

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

added TOC header

TJ Holowaychuk0a9eb1552eec
diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.js
index d4ca93e9..14191391 100644
--- a/lib/reporters/markdown.js
+++ b/lib/reporters/markdown.js
@@ -58,6 +58,7 @@ function Markdown(runner) {
});
runner.on('end', function(){
+ process.stdout.write('# TOC\n');
process.stdout.write(toc);
process.stdout.write(buf);
});