Skip to content

armgit / mocha

Public Imported from GitHub
0

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

use full title for markdown anchors

TJ Holowaychukc42ad7267363
diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.js
index 14191391..1e23f8f7 100644
--- a/lib/reporters/markdown.js
+++ b/lib/reporters/markdown.js
@@ -39,7 +39,7 @@ function Markdown(runner) {
runner.on('suite', function(suite){
++level;
- var slug = utils.slug(suite.title);
+ var slug = utils.slug(suite.fullTitle());
if (!suite.root) toc += indent() + '- [' + suite.title + '](#' + slug + ')\n';
buf += '<a name="' + slug + '" />' + '\n';
buf += title(suite.title) + '\n';