remove the .enabled property in lieu of .level (closes #234)

This commit is contained in:
Josh Junon 2019-07-12 20:05:36 +02:00
parent c25c32a25f
commit 024068f9f5
9 changed files with 17 additions and 101 deletions

View file

@ -14,7 +14,7 @@ test('don\'t output colors when manually disabled', t => {
chalk.level = oldLevel;
});
test('enable/disable colors based on overall chalk enabled property, not individual instances', t => {
test('enable/disable colors based on overall chalk .level property, not individual instances', t => {
const oldLevel = chalk.level;
chalk.level = 1;
const {red} = chalk;