diff --git a/lib/reporters/html.js b/lib/reporters/html.js index 62643ecb3c..277075985d 100644 --- a/lib/reporters/html.js +++ b/lib/reporters/html.js @@ -129,7 +129,10 @@ function HTML(runner) { }); runner.on('fail', function(test) { - if (test.type === 'hook') { + // For type = 'test' its possible that the test failed due to multiple + // done() calls. So report the issue here. + if (test.type === 'hook' + || test.type === 'test') { runner.emit('test end', test); } }); diff --git a/test/browser/index.html b/test/browser/index.html index f10732dd4e..9200b977e5 100644 --- a/test/browser/index.html +++ b/test/browser/index.html @@ -14,6 +14,7 @@ +