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

@ -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');
});