Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
KayLeung committed Oct 16, 2017
1 parent 632d2be commit 40c4c52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ test('return level 1 if `TEAMCITY_VERSION` is in env and is >= 9.1', t => {
t.is(result.level, 1);
});

test('support rxvt', t => {
process.env = {TERM: 'rxvt'};
const result = importFresh('.');
t.is(result.level, 1);
});

test('prefer level 2/xterm over COLORTERM', t => {
process.env = {COLORTERM: '1', TERM: 'xterm-256color'};
const result = importFresh('.');
Expand Down

0 comments on commit 40c4c52

Please sign in to comment.