From 3f74fb65b57fdd418490b34df1ea0eb7c6c196ce Mon Sep 17 00:00:00 2001 From: Kevin Martensson Date: Sun, 23 Jul 2017 17:34:30 +0200 Subject: [PATCH] Add `TERM` and `platform` info --- test/chalk.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/chalk.js b/test/chalk.js index 227329a..fec2944 100644 --- a/test/chalk.js +++ b/test/chalk.js @@ -13,6 +13,9 @@ require.cache[resolveFrom(__dirname, 'supports-color')] = { const m = require('..'); +console.log('TERM:', process.env.TERM || '[none]'); +console.log('platform:', process.platform || '[unknown]'); + test('don\'t add any styling when called as the base function', t => { t.is(m('foo'), 'foo'); });