Skip to content

Commit

Permalink
doc: adds NO_COLOR to assert doc page
Browse files Browse the repository at this point in the history
Co-Authored-By: Vse Mozhet Byt <[email protected]>

PR-URL: #30483
Refs: #30484
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
  • Loading branch information
shobhitchittora authored and MylesBorins committed Dec 17, 2019
1 parent d2e32ab commit ec5fe99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,13 @@ assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
// ]
```

To deactivate the colors, use the `NODE_DISABLE_COLORS` environment variable.
To deactivate the colors, use the `NO_COLOR` or
`NODE_DISABLE_COLORS` environment variable.
This will also deactivate the colors in the REPL.

For more on the color support in terminal environments, read
the tty [getColorDepth()](tty.html#tty_writestream_getcolordepth_env) doc.

## Legacy mode

Legacy mode uses the [Abstract Equality Comparison][] in:
Expand Down

0 comments on commit ec5fe99

Please sign in to comment.