import type { FunctionComponent } from 'react';
import * as React from 'react';
import { render } from '@testing-library/react';
import { SectionHandler } from './SectionHandler';
const TestComponent: FunctionComponent<{ children: React.ReactNode }> = ({ children }) => {
return {children};
};
describe('SectionHandler', () => {
it('should render the children passed to it', async () => {
const { findByText } = render(
some children
,
);
expect(await findByText('some children')).toBeTruthy();
});
});