add chalk.stderr

This commit is contained in:
Yanis Benson 2019-07-22 06:20:27 +03:00
parent 6b4d20683f
commit a0a5cc536c
9 changed files with 47 additions and 9 deletions

View file

@ -105,3 +105,7 @@ test('don\'t emit RGB codes if level is 0', t => {
test('supports blackBright color', t => {
t.is(chalk.blackBright('foo'), '\u001B[90mfoo\u001B[39m');
});
test('sets correct level for chalk.stderr', t => {
t.is(chalk.stderr.level, 3);
});