chore(reporter): add another surrogate pair test case (#33428)

This commit is contained in:
Simon Knott 2024-11-05 07:55:17 +01:00 committed by GitHub
parent 58b1f322ab
commit 26a7dd4dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -29,4 +29,5 @@ test('surrogate pairs', () => {
expect(fitToWidth('🚄🚄', 2)).toBe('…');
expect(fitToWidth('🚄🚄', 3)).toBe('…🚄');
expect(fitToWidth('🚄🚄', 4)).toBe('🚄🚄');
expect(fitToWidth('🧑‍🧑‍🧒🧑‍🧑‍🧒🧑‍🧑‍🧒', 4)).toBe('…🧑‍🧑‍🧒');
});