Skip to content
Permalink
Browse files

add host information output

  • Loading branch information...
Qix- committed Jun 29, 2017
1 parent 523b998 commit 18f2e7c122690070ea148fbbe846e839fa6a8962
Showing with 4 additions and 0 deletions.
  1. +4 −0 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');

0 comments on commit 18f2e7c

Please sign in to comment.
You can’t perform that action at this time.