Skip to content

Commit

Permalink
Merge pull request #2307 from jleyba/master
Browse files Browse the repository at this point in the history
Fix a small typo in the doc reporter that causes mocha to crash
  • Loading branch information
boneskull committed Jun 17, 2016
2 parents 4cfab1c + 3b58184 commit dce0aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/doc.js
Expand Up @@ -55,7 +55,7 @@ function Doc(runner) {

runner.on('fail', function(test, err) {
console.log('%s <dt class="error">%s</dt>', indent(), utils.escape(test.title));
var code = utils.escape(utils.clean(test.fn.body));
var code = utils.escape(utils.clean(test.body));
console.log('%s <dd class="error"><pre><code>%s</code></pre></dd>', indent(), code);
console.log('%s <dd class="error">%s</dd>', indent(), utils.escape(err));
});
Expand Down

0 comments on commit dce0aec

Please sign in to comment.