From 528f11ea670757312bac431c45a8fe431256f245 Mon Sep 17 00:00:00 2001
From: Jan Durkaj
Date: Mon, 30 Dec 2024 17:34:26 +0100
Subject: [PATCH] Added test for Core/Paragraph block
---
.../blocks/tests/blocks/CoreParagraph.test.tsx | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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
+
+ `);
+ });
});