Update no-color-support.js

This commit is contained in:
Sindre Sorhus 2018-09-18 15:45:45 +07:00 committed by GitHub
parent e19a64cde7
commit d62412af6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,9 +8,9 @@ require('./_supports-color')(__dirname, {
has16m: false
});
const m = require('..');
const chalk = require('..');
test.failing('can be forced on using chalk.enabled', t => {
m.enabled = true;
t.is(m.green('hello'), '\u001B[32mhello\u001B[39m');
test.failing('colors can be forced by using chalk.enabled', t => {
chalk.enabled = true;
t.is(chalk.green('hello'), '\u001B[32mhello\u001B[39m');
});