☕️ Classic, reliable, trusted test framework for Node.js and the browser
Merge commit 'f652414ac05d20685903ed33a14349df96283f4f' into chore/linting
Christopher Hillerc31a03bb2d1c
diff --cc lib/reporters/html.jsindex 00e9d58f,9390f830..75fb97d5--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@@ -4,10 -2,11 +4,11 @@@* Module dependencies.*/-var Base = require('./base')- , utils = require('../utils')- , Progress = require('../browser/progress')- , escapeRe = require('../browser/escape-string-regexp')- , escape = utils.escape;+var Base = require('./base');+var utils = require('../utils');+var Progress = require('../browser/progress');++var escapeRe = require('../browser/escape-string-regexp');+var escape = utils.escape;/*** Save timer references to avoid Sinon interfering (see GH-237).@@@ -222,11 -201,11 +223,11 @@@ function makeUrl(s)search = search.replace(/[?&]grep=[^&\s]*/g, '').replace(/^&/, '?');}- return window.location.pathname + (search ? search + '&' : '?') + 'grep=' + encodeURIComponent(s);- return window.location.pathname + (search ? search + '&' : '?' ) + 'grep=' + encodeURIComponent(escapeRe(s));-};++ return window.location.pathname + (search ? search + '&' : '?') + 'grep=' + encodeURIComponent(escapeRe(s));+}/**- * Provide suite URL+ * Provide suite URL.** @param {Object} [suite]*/@@@ -274,10 -251,10 +275,11 @@@ function fragment(html)}/**- * Check for suites that do not have elements with `classname`, and hide them.+ * Check for suites that do not have elements+ * with `classname`, and hide them.+ *+ * @param {text} classname*/-function hideSuitesWithout(classname) {var suites = document.getElementsByClassName('suite');for (var i = 0; i < suites.length; i++) {