remove has-ansi and strip-ansi dependencies

This commit is contained in:
vdemedes 2015-12-12 23:38:55 +01:00
parent 83615f2ed6
commit 04cae226cc
4 changed files with 0 additions and 40 deletions

13
test.js
View file

@ -142,16 +142,3 @@ describe('chalk.styles', function () {
assert.equal(chalk.styles.red.open, '\u001b[31m');
});
});
describe('chalk.hasColor()', function () {
it('should detect whether a string has color', function () {
assert(chalk.hasColor(chalk.green('foo')));
assert(!chalk.hasColor(chalk.stripColor(chalk.green('foo'))));
});
});
describe('chalk.stripColor()', function () {
it('should strip color from string', function () {
assert.equal(chalk.stripColor(chalk.underline.red.bgGreen('foo')), 'foo');
});
});