aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/article/article.test.tsx
blob: 2412fe3d54b7182708beca80110feda044aa78a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Article } from './article';

describe('Article', () => {
  it('renders the contents of an article', () => {
    const children = 'The article content.';

    render(<Article>{children}</Article>);

    expect(rtlScreen.getByRole('article')).toHaveTextContent(children);
  });
});