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
|
|
@ -10,7 +10,7 @@ require('./_supports-color')(__dirname, {
|
|||
|
||||
const chalk = require('../source');
|
||||
|
||||
test.failing('colors can be forced by using chalk.enabled', t => {
|
||||
chalk.enabled = true;
|
||||
test('colors can be forced by using chalk.level', t => {
|
||||
chalk.level = 1;
|
||||
t.is(chalk.green('hello'), '\u001B[32mhello\u001B[39m');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue