From 26a7dd4dd468bd15e0aa51dd5f190b7b72d8df4c Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Tue, 5 Nov 2024 07:55:17 +0100 Subject: [PATCH] chore(reporter): add another surrogate pair test case (#33428) --- tests/playwright-test/fit-to-width.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/playwright-test/fit-to-width.spec.ts b/tests/playwright-test/fit-to-width.spec.ts index 94e73cb381..c4f6dd3200 100644 --- a/tests/playwright-test/fit-to-width.spec.ts +++ b/tests/playwright-test/fit-to-width.spec.ts @@ -29,4 +29,5 @@ test('surrogate pairs', () => { expect(fitToWidth('🚄🚄', 2)).toBe('…'); expect(fitToWidth('🚄🚄', 3)).toBe('…🚄'); expect(fitToWidth('🚄🚄', 4)).toBe('🚄🚄'); + expect(fitToWidth('🧑‍🧑‍🧒🧑‍🧑‍🧒🧑‍🧑‍🧒', 4)).toBe('…🧑‍🧑‍🧒'); });