summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/headings/heading.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/headings/heading.test.tsx')
-rw-r--r--src/components/atoms/headings/heading.test.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/atoms/headings/heading.test.tsx b/src/components/atoms/headings/heading.test.tsx
index b83f7cd..6b6789a 100644
--- a/src/components/atoms/headings/heading.test.tsx
+++ b/src/components/atoms/headings/heading.test.tsx
@@ -43,4 +43,14 @@ describe('Heading', () => {
'Level 6'
);
});
+
+ it('renders a text with heading styles', () => {
+ render(
+ <Heading isFake={true} level={2}>
+ Fake heading
+ </Heading>
+ );
+ expect(screen.queryByRole('heading', { level: 2 })).not.toBeInTheDocument();
+ expect(screen.getByText('Fake heading')).toHaveClass('heading');
+ });
});