☕️ Classic, reliable, trusted test framework for Node.js and the browser
Fix grep url, when click title
hokaccha3a800c97918e
diff --git a/lib/reporters/html.js b/lib/reporters/html.jsindex 0bab4afc..c3f21b93 100644--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@ -76,7 +76,7 @@ function HTML(runner) {if (suite.root) return;// suite- var url = location.origin + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle());+ var url = location.protocol + '//' + location.host + location.pathname + '?grep=^' + utils.escapeRegexp(suite.fullTitle());var el = fragment('<li class="suite"><h1><a href="%s">%s</a></h1></li>', url, suite.title);// container