Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix markdown reporter a tags

TJ Holowaychuk5350090e1aac
diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.js
index dc0fcea2..198ed3b9 100644
--- a/lib/reporters/markdown.js
+++ b/lib/reporters/markdown.js
@@ -68,7 +68,7 @@ function Markdown(runner) {
runner.on('suite', function(suite){
++level;
var slug = utils.slug(suite.fullTitle());
- buf += '<a name="' + slug + '" />' + '\n';
+ buf += '<a name="' + slug + '"></a>' + '\n';
buf += title(suite.title) + '\n';
});