Skip to content

Commit

Permalink
Add failing test for #26
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Sep 17, 2019
1 parent 617d649 commit 108d0ad
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 @@ -92,3 +92,8 @@ test('doesn\'t add extra escapes', t => {
t.is(sliceAnsi(output, 0, 8), `${chalk.black.bgYellow(' RUNS ')} `);
t.is(sliceAnsi('\u001B[31m' + output, 0, 4), `\u001B[31m${chalk.black.bgYellow(' RUN')}`);
});

// See https://github.com/chalk/slice-ansi/issues/26
test.failing('does not lose fullwidth characters', t => {
t.is(sliceAnsi('古古test', 0), '古古test');
});

0 comments on commit 108d0ad

Please sign in to comment.