Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fixed `js` code block format error.

fengmk20f5a07607739
diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.js
index 111b111a..dc0fcea2 100644
--- a/lib/reporters/markdown.js
+++ b/lib/reporters/markdown.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -80,7 +79,7 @@ function Markdown(runner) {
runner.on('pass', function(test){
var code = utils.clean(test.fn.toString());
buf += test.title + '.\n';
- buf += '\n```js';
+ buf += '\n```js\n';
buf += code + '\n';
buf += '```\n\n';
});