Skip to content

Commit

Permalink
Add a failing test for slicing links (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Demedes authored May 7, 2020
1 parent 6e1176c commit 13c5d40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,8 @@ test('doesn\'t add extra escapes', t => {
test('does not lose fullwidth characters', t => {
t.is(sliceAnsi('古古test', 0), '古古test');
});

test.failing('slice links', t => {
const link = '\u001B]8;;https://google.com\u0007Google\u001B]8;;\u0007';
t.is(sliceAnsi(link, 0, 6), link);
});

0 comments on commit 13c5d40

Please sign in to comment.