Skip to content

armgit / mocha

Public Imported from GitHub
0

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

docs: fix broken table width under 450 screen width (#4734)

JeongHoon Byun (a.k.a Outsider)abfddf8762a9
diff --git a/docs/css/style.css b/docs/css/style.css
index c3e3ce6b..148c48c4 100644
--- a/docs/css/style.css
+++ b/docs/css/style.css
@@ -352,6 +352,16 @@ figure#wallaby-logo figcaption {
-webkit-font-smoothing: antialiased;
}
+table {
+ width: 100%;
+}
+
+table td {
+ border-top: 1px solid #eee;
+ vertical-align: top;
+ word-break: break-all;
+}
+
@media all and (max-width: 960px) {
#copyright-notice {
max-width: initial;
diff --git a/docs/index.md b/docs/index.md
index 94fbe290..77da5b1d 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -2316,15 +2316,15 @@ _Note_: Double quotes around the glob are recommended for portability.
When Mocha itself throws exception, the associated `Error` will have a `code` property. Where applicable, consumers should check the `code` property instead of string-matching against the `message` property. The following table describes these error codes:
-| Code | Description |
-| -------------------------------- | ------------------------------------------------------------ |
-| ERR_MOCHA_INVALID_ARG_TYPE | wrong type was passed for a given argument |
-| ERR_MOCHA_INVALID_ARG_VALUE | invalid or unsupported value was passed for a given argument |
-| ERR_MOCHA_INVALID_EXCEPTION | a falsy or otherwise underspecified exception was thrown |
-| ERR_MOCHA_INVALID_INTERFACE | interface specified in options not found |
-| ERR_MOCHA_INVALID_REPORTER | reporter specified in options not found |
-| ERR_MOCHA_NO_FILES_MATCH_PATTERN | test file(s) could not be found |
-| ERR_MOCHA_UNSUPPORTED | requested behavior, option, or parameter is unsupported |
+| Code | Description |
+| ---------------------------------- | ------------------------------------------------------------ |
+| `ERR_MOCHA_INVALID_ARG_TYPE` | wrong type was passed for a given argument |
+| `ERR_MOCHA_INVALID_ARG_VALUE` | invalid or unsupported value was passed for a given argument |
+| `ERR_MOCHA_INVALID_EXCEPTION` | a falsy or otherwise underspecified exception was thrown |
+| `ERR_MOCHA_INVALID_INTERFACE` | interface specified in options not found |
+| `ERR_MOCHA_INVALID_REPORTER` | reporter specified in options not found |
+| `ERR_MOCHA_NO_FILES_MATCH_PATTERN` | test file(s) could not be found |
+| `ERR_MOCHA_UNSUPPORTED` | requested behavior, option, or parameter is unsupported |
## Editor Plugins