2017-12-15 17:11:31 -05:00
|
|
|
import test from 'ava';
|
|
|
|
|
|
|
|
|
|
// Spoof supports-color
|
|
|
|
|
require('./_supports-color')(__dirname, {
|
|
|
|
|
level: 0,
|
|
|
|
|
hasBasic: false,
|
|
|
|
|
has256: false,
|
|
|
|
|
has16m: false
|
|
|
|
|
});
|
|
|
|
|
|
2018-09-18 15:45:45 +07:00
|
|
|
const chalk = require('..');
|
2017-12-15 17:11:31 -05:00
|
|
|
|
2018-09-18 15:45:45 +07:00
|
|
|
test.failing('colors can be forced by using chalk.enabled', t => {
|
|
|
|
|
chalk.enabled = true;
|
|
|
|
|
t.is(chalk.green('hello'), '\u001B[32mhello\u001B[39m');
|
2017-12-15 17:11:31 -05:00
|
|
|
});
|