Skip to content

armgit / mocha

Public Imported from GitHub
0

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

Added view source on hover for HTML reporter

TJ Holowaychukc5ebd40fa34c
diff --git a/test/browser/style.css b/test/browser/style.css
index 2dedf491..e7f94393 100644
--- a/test/browser/style.css
+++ b/test/browser/style.css
@@ -31,6 +31,15 @@ body {
margin-left: 15px;
}
+#mocha .test:hover h2::after {
+ position: relative;
+ top: 0;
+ right: -10px;
+ content: '(view source)';
+ font-size: 12px;
+ color: #888;
+}
+
#mocha .test.pass::before {
content: '✓';
font-size: 12px;