From 2ba406c3bd7029fa35a6e32d03cdb5cedcc8c916 Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Wed, 9 Oct 2024 20:22:17 +0200 Subject: [PATCH] fixup! fixup! BREAKING-CHANGE(web-react): Remove default elementType value for Heading component --- .../components/Heading/__tests__/Heading.test.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx index 72402dfedb..bba2d52418 100644 --- a/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx +++ b/packages/web-react/src/components/Heading/__tests__/Heading.test.tsx @@ -10,15 +10,18 @@ import Heading from '../Heading'; import headingSizeDataProvider from './headingSizeDataProvider'; describe('Heading', () => { - classNamePrefixProviderTest(Heading, 'typography-heading-medium-bold'); + classNamePrefixProviderTest(() => , 'typography-heading-medium-bold'); - stylePropsTest(Heading); + stylePropsTest((props) => , 'heading-test-id'); - sizePropsTest(Heading); + sizePropsTest((props) => , 'heading-test-id'); - sizeExtendedPropsTest(Heading); + sizeExtendedPropsTest( + (props) => , + 'heading-test-id', + ); - restPropsTest(Heading, 'div'); + restPropsTest((props) => , 'h1'); it.each(headingSizeDataProvider)('should have classname', (size, emphasis, expectedClassName) => { render(