Add failing test for #234
* Change .gitignore to support IntellJ IDEs * Change .gitignore to specify that node_modules and coverage are folders * Modify supports-color mock to allow export override * Add failing test showing that enabled does not work
This commit is contained in:
parent
84f27d4bd8
commit
9756f160ba
3 changed files with 30 additions and 13 deletions
16
test/no-color-support.js
Normal file
16
test/no-color-support.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import test from 'ava';
|
||||
|
||||
// Spoof supports-color
|
||||
require('./_supports-color')(__dirname, {
|
||||
level: 0,
|
||||
hasBasic: false,
|
||||
has256: false,
|
||||
has16m: false
|
||||
});
|
||||
|
||||
const m = require('..');
|
||||
|
||||
test.failing('can be forced on using chalk.enabled', t => {
|
||||
m.enabled = true;
|
||||
t.is(m.green('hello'), '\u001B[32mhello\u001B[39m');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue