Skip to content

Commit

Permalink
sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
stroncium committed Sep 20, 2019
1 parent 8a16597 commit 20cdd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/chalk.js
Expand Up @@ -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');
});

0 comments on commit 20cdd91

Please sign in to comment.