Remove the .enabled property in favor of .level (#356)
This commit is contained in:
parent
87156ce8e2
commit
1f77953f1a
9 changed files with 17 additions and 101 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue