test: disable colors in test-assert.js
When test/parallel/test-assert.js
is run with a TTY as stdout, color codes in assertion messages cause the test to fail. This commit disables colors when stdout is a TTY.
Fixes: https://github.com/nodejs/node/issues/18967
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines