Skip to content

Commit

Permalink
add host information output
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Jun 29, 2017
1 parent 523b998 commit 18f2e7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.js
Expand Up @@ -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');
Expand Down

0 comments on commit 18f2e7c

Please sign in to comment.