<commit_before>'use strict';
var assert = require('assert');
var isIterm = require('./');
var isTravis = require('is-travis');

it('checks if the terminal is running in iTerm', function () {
	if (isTravis) {
		// I can't run this everywhere, as I'm unable to know if the user is actually using iTerm.
		assert(!isIterm);
	}

	assert.equal(typeof isIterm, 'boolean');
});<commit_msg>Making the tests a little more robust<commit_after>'use strict';
var assert = require('assert');
var isIterm = require('./');
var isTravis = require('is-travis');

it('checks if the terminal is running in iTerm', function () {
	assert.equal(typeof isIterm, 'boolean');

	if (isTravis) {
		assert(!isIterm);
	}

	if (/iTerm/.test(process.env.TERM_PROGRAM)) {
		assert(isIterm);
	} else {
		assert(!isIterm);
	}
});
{'fraction_non_alphanumeric': 0.16352201257861634, 'fraction_numerical': 0.0, 'mean_word_length': 4.685714285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1899012', 'n_tokens_mistral': 279, 'n_tokens_neox': 269, 'n_words': 80}