Add TERM and platform info

This commit is contained in:
Kevin Martensson 2017-07-23 17:34:30 +02:00
parent 7402de52df
commit 3f74fb65b5

View file

@ -13,6 +13,9 @@ require.cache[resolveFrom(__dirname, 'supports-color')] = {
const m = require('..'); 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 => { test('don\'t add any styling when called as the base function', t => {
t.is(m('foo'), 'foo'); t.is(m('foo'), 'foo');
}); });