Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Don't scroll window while running

John Firebaughba21b082394a
diff --git a/lib/reporters/html.js b/lib/reporters/html.js
index aa3f81a1..f09279be 100644
--- a/lib/reporters/html.js
+++ b/lib/reporters/html.js
@@ -120,8 +120,6 @@ function HTML(runner, root) {
});
runner.on('test end', function(test){
- window.scrollTo(0, document.body.scrollHeight);
-
// TODO: add to stats
var percent = stats.tests / this.total * 100 | 0;
if (progress) progress.update(percent).draw(ctx);