Add chalk.stderr (#359)
This commit is contained in:
parent
6b4d20683f
commit
2a53389d72
9 changed files with 47 additions and 9 deletions
|
|
@ -105,3 +105,8 @@ 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 and respects it', t => {
|
||||
t.is(chalk.stderr.level, 3);
|
||||
t.is(chalk.stderr.red.bold('foo'), '\u001B[31m\u001B[1mfoo\u001B[22m\u001B[39m');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue