From 1df18170e16ed67096ca0aad71a93cf43baf7812 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Wed, 28 Jun 2017 23:53:09 -0700 Subject: [PATCH] add host information output --- test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.js b/test.js index 074c1cd8..611a22e4 100644 --- a/test.js +++ b/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');