From 7a88250832969f37f41301a5c72601996c3f14d3 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 4 Nov 2024 16:16:34 +0100 Subject: [PATCH] chore(reporter): add another surrogate pair test case --- 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('…🧑‍🧑‍🧒'); });