diff options
Diffstat (limited to 'src/components/atoms/layout/section.test.tsx')
| -rw-r--r-- | src/components/atoms/layout/section.test.tsx | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/components/atoms/layout/section.test.tsx b/src/components/atoms/layout/section.test.tsx deleted file mode 100644 index 6a2805d..0000000 --- a/src/components/atoms/layout/section.test.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import { describe, expect, it } from '@jest/globals'; -import { render, screen } from '../../../../tests/utils'; -import { Section } from './section'; - -const title = 'Section title'; -const content = 'Section content.'; - -describe('Section', () => { - it('renders a title (h2)', () => { - render(<Section title={title} content={content} />); - expect(screen.getByRole('heading', { level: 2 })).toHaveTextContent(title); - }); - - it('renders a content', () => { - render(<Section title={title} content={content} />); - expect(screen.getByText(content)).toBeInTheDocument(); - }); -}); |
