blob: 28a47d7b03fa84c2a3eede76d3bfb20db0b5561b (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
 | import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { PageBody } from './page-body';
describe('PageBody', () => {
  it('renders its contents', () => {
    const body =
      'Consectetur deleniti laboriosam vel velit optio voluptate qui. Possimus voluptatem eos enim labore debitis iure eveniet aspernatur quibusdam. Accusamus dolore quos explicabo recusandae in illo ipsam incidunt.';
    render(<PageBody>{body}</PageBody>);
    expect(rtlScreen.getByText(body)).toBeInTheDocument();
  });
});
 |