diff options
Diffstat (limited to 'test/pseudo-tty/console_colors.js')
-rw-r--r-- | test/pseudo-tty/console_colors.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pseudo-tty/console_colors.js b/test/pseudo-tty/console_colors.js new file mode 100644 index 0000000000..dd16a0c028 --- /dev/null +++ b/test/pseudo-tty/console_colors.js @@ -0,0 +1,9 @@ +'use strict'; +require('../common'); +// Make this test OS-independent by overriding stdio getColorDepth(). +process.stdout.getColorDepth = () => 8; +process.stderr.getColorDepth = () => 8; + +console.log({ foo: 'bar' }); +console.log('%s q', 'string'); +console.log('%o with object format param', { foo: 'bar' }); |