Skip to content

Commit 14839a4

Browse files
cancerberoSgxsindresorhus
authored andcommittedApr 21, 2018
Add failing test for #21 (#22)
1 parent 0a8cc19 commit 14839a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎test.js

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ test('match clear screen in a string', t => {
3737
t.is('foo\u001B[2Jbar'.match(m())[0], '\u001B[2J');
3838
});
3939

40+
test.failing('match "change icon name and window title" in string', t => {
41+
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');
42+
});
43+
4044
// Testing against extended codes (excluding codes ending in 0-9)
4145
for (const codeSet of Object.keys(ansiCodes)) {
4246
for (const el of ansiCodes[codeSet]) {

0 commit comments

Comments
 (0)
Please sign in to comment.