Skip to content

Commit

Permalink
Add failing test for #21 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
cancerberoSgx authored and sindresorhus committed Apr 21, 2018
1 parent 0a8cc19 commit 14839a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ test('match clear screen in a string', t => {
t.is('foo\u001B[2Jbar'.match(m())[0], '\u001B[2J');
});

test.failing('match "change icon name and window title" in string', t => {
t.is('\u001B]0;sg@tota:~/git/\u0007\u001B[01;32m[sg@tota\u001B[01;37m misc-tests\u001B[01;32m]$'.match(m())[0], '\u001B]0;sg@tota:~/git/\u0007');
});

// Testing against extended codes (excluding codes ending in 0-9)
for (const codeSet of Object.keys(ansiCodes)) {
for (const el of ansiCodes[codeSet]) {
Expand Down

0 comments on commit 14839a4

Please sign in to comment.