forked from orbit-oss/chalk
add host information output
This commit is contained in:
parent
523b998e64
commit
18f2e7c122
1 changed files with 4 additions and 0 deletions
4
test.js
4
test.js
|
|
@ -4,6 +4,10 @@ const importFresh = require('import-fresh');
|
|||
const resolveFrom = require('resolve-from');
|
||||
const chalk = require('.');
|
||||
|
||||
console.log('host TERM=', process.env.TERM || '[none]');
|
||||
console.log('host platform=', process.platform || '[unknown]');
|
||||
console.log('host support=', chalk.supportsColor);
|
||||
|
||||
describe('chalk', () => {
|
||||
it('should style string', () => {
|
||||
assert.equal(chalk.underline('foo'), '\u001B[4mfoo\u001B[24m');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue