diff --git a/packages/blocks/tests/blocks/CoreParagraph.test.tsx b/packages/blocks/tests/blocks/CoreParagraph.test.tsx index f99b78452..c3db3dbfc 100644 --- a/packages/blocks/tests/blocks/CoreParagraph.test.tsx +++ b/packages/blocks/tests/blocks/CoreParagraph.test.tsx @@ -42,4 +42,20 @@ describe('', () => {

`); }); + + test('applies the HTML anchor attribute properly', () => { + renderProvider({ + attributes: { + anchor: 'test-anchor', + content: 'Hello World', + }, + }); + expect(screen.queryByText('Hello World')).toMatchInlineSnapshot(` +

+ Hello World +

+ `); + }); });