blob: be4c324d0637b63ed204c3876ac44ba08685f00f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { describe, expect, it } from '@jest/globals';
import { render, screen as rtlScreen } from '@testing-library/react';
import { Section } from './section';
const content = 'Section content.';
describe('Section', () => {
it('renders its children', () => {
render(<Section>{content}</Section>);
expect(rtlScreen.getByText(content)).toBeInTheDocument();
});
});
|