diff options
Diffstat (limited to 'src/components/templates/page/page-body.test.tsx')
| -rw-r--r-- | src/components/templates/page/page-body.test.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/templates/page/page-body.test.tsx b/src/components/templates/page/page-body.test.tsx new file mode 100644 index 0000000..28a47d7 --- /dev/null +++ b/src/components/templates/page/page-body.test.tsx @@ -0,0 +1,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(); + }); +}); |
