diff --git a/test/__image_snapshots__/white-space-test-tsx-test-white-space-test-tsx-white-space-normal-should-not-render-extra-spaces-with-white-space-normal-1-snap.png b/test/__image_snapshots__/white-space-test-tsx-test-white-space-test-tsx-white-space-normal-should-not-render-extra-spaces-with-white-space-normal-1-snap.png index 8cbc235b..dca0c854 100644 Binary files a/test/__image_snapshots__/white-space-test-tsx-test-white-space-test-tsx-white-space-normal-should-not-render-extra-spaces-with-white-space-normal-1-snap.png and b/test/__image_snapshots__/white-space-test-tsx-test-white-space-test-tsx-white-space-normal-should-not-render-extra-spaces-with-white-space-normal-1-snap.png differ diff --git a/test/white-space.test.tsx b/test/white-space.test.tsx index a53bd6fd..8cbf6603 100644 --- a/test/white-space.test.tsx +++ b/test/white-space.test.tsx @@ -9,13 +9,24 @@ describe('white-space', () => { describe('normal', () => { it('should not render extra spaces with `white-space: normal`', async () => { + const EnSpace = String.fromCodePoint(Number('0x2002')) + const svg = await satori(
- {' hello '} +
{'hello'}
+
{' hello '}
+
{'hello' + EnSpace}
, { width: 100,