From d02f931efb8c2056b1f5211ff57711de049fe5ce Mon Sep 17 00:00:00 2001 From: Vadim Demedes Date: Thu, 7 May 2020 12:15:22 +0300 Subject: [PATCH] Add a failing test for slicing links --- test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.js b/test.js index 3883b7f..76f8d7d 100755 --- a/test.js +++ b/test.js @@ -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); +});