From 20cdd9128a465936076210734a2d54ceddf25c2b Mon Sep 17 00:00:00 2001 From: Yanis Benson Date: Fri, 20 Sep 2019 16:46:17 +0300 Subject: [PATCH] sanity check --- test/chalk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/chalk.js b/test/chalk.js index fc3a436..5e33f5e 100644 --- a/test/chalk.js +++ b/test/chalk.js @@ -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'); });