diff --git a/lib/reporters/html.js b/lib/reporters/html.js index e498328145..51ba1ca722 100644 --- a/lib/reporters/html.js +++ b/lib/reporters/html.js @@ -125,7 +125,7 @@ function HTML(runner) { runner.on('suite end', function(suite) { if (suite.root) { - updateStats.call(this); + updateStats(); return; } stack.shift(); @@ -138,7 +138,7 @@ function HTML(runner) { var el = fragment(markup, test.speed, test.title, test.duration, url); self.addCodeToggle(el, test.body); appendToStack(el); - updateStats.call(this); + updateStats(); }); runner.on('fail', function(test) { @@ -178,13 +178,13 @@ function HTML(runner) { self.addCodeToggle(el, test.body); appendToStack(el); - updateStats.call(this); + updateStats(); }); runner.on('pending', function(test) { var el = fragment('