☕️ Classic, reliable, trusted test framework for Node.js and the browser
fix undefined `str` variable for html coverage
Outsider283ad65b2bc2
diff --git a/lib/reporters/html-cov.js b/lib/reporters/html-cov.jsindex f45feb5d..e3f2dd91 100644--- a/lib/reporters/html-cov.js+++ b/lib/reporters/html-cov.js@@ -21,9 +21,9 @@ exports = module.exports = HTMLCov;function HTMLCov(runner) {var jade = require('jade');var file = join(__dirname, '/templates/coverage.jade');+ var str = readFileSync(file, 'utf8');var fn = jade.compile(str, { filename: file });var self = this;- var str = readFileSync(file, 'utf8');JSONCov.call(this, runner, false);