Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fixed escaping in markdown reporter

TJ Holowaychuk09416dcdce95
diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.js
index a55721b8..14364017 100644
--- a/lib/reporters/markdown.js
+++ b/lib/reporters/markdown.js
@@ -3,8 +3,7 @@
* Module dependencies.
*/
-var Base = require('./base')
- , utils = require('../utils');
+var Base = require('./base');
/**
* Expose `Markdown`.
@@ -41,7 +40,7 @@ function Markdown(runner) {
});
runner.on('pass', function(test){
- var code = utils.escape(clean(test.fn.toString()));
+ var code = clean(test.fn.toString());
process.stdout.write('\n ' + test.title + '.\n');
process.stdout.write('\n```js');
process.stdout.write(code + '\n');