Skip to content

Commit f6d78f9

Browse files
Trottcodebytere
authored andcommitted
doc: improve strict assertion mode color text
Minor improvements to the text about colors in strict assertion mode: * Consolidate the two paragraphs into one * Pluralize "variables" * Remove unnecessary article "the" * Change "doc" to "documentation" PR-URL: #31703 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent fa9b592 commit f6d78f9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

doc/api/assert.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
5757
// ]
5858
```
5959

60-
To deactivate the colors, use the `NO_COLOR` or
61-
`NODE_DISABLE_COLORS` environment variable.
62-
This will also deactivate the colors in the REPL.
63-
64-
For more on the color support in terminal environments, read
65-
the tty [getColorDepth()](tty.html#tty_writestream_getcolordepth_env) doc.
60+
To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS`
61+
environment variables. This will also deactivate the colors in the REPL. For
62+
more on color support in terminal environments, read the tty
63+
[getColorDepth()](tty.html#tty_writestream_getcolordepth_env) documentation.
6664

6765
## Legacy assertion mode
6866

0 commit comments

Comments
 (0)