summaryrefslogtreecommitdiff
path: root/test/pseudo-tty/console_colors.js
blob: dd16a0c028dccdd4c4f2a7513bab3a90f5bae139 (plain)
1
2
3
4
5
6
7
8
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' });