Skip to content

armgit / mocha

Public Imported from GitHub
0

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

use >= for heading check in html-cov

Paul Armstronge73b1fa5db5f
diff --git a/lib/reporters/templates/script.html b/lib/reporters/templates/script.html
index 7df9bcd5..073cf793 100644
--- a/lib/reporters/templates/script.html
+++ b/lib/reporters/templates/script.html
@@ -26,9 +26,9 @@ function find(y) {
while (i--) {
heading = headings[i];
- if (y > heading.offsetTop) {
+ if (y >= heading.offsetTop) {
return heading;
}
}
}
-</script>
\ No newline at end of file
+</script>