chore(reporter): add another surrogate pair test case

This commit is contained in:
Simon Knott 2024-11-04 16:16:34 +01:00
parent b148ce1ad1
commit 7a88250832
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

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('…🧑‍🧑‍🧒');
});