remove the .enabled property in lieu of .level (closes #234)
This commit is contained in:
parent
c25c32a25f
commit
024068f9f5
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