sanity check

This commit is contained in:
Yanis Benson 2019-09-20 16:46:17 +03:00
parent 8a165977b0
commit 20cdd9128a

View file

@ -106,6 +106,7 @@ test('supports blackBright color', t => {
t.is(chalk.blackBright('foo'), '\u001B[90mfoo\u001B[39m');
});
test('sets correct level for chalk.stderr', t => {
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');
});