import React from 'react'; import { render } from 'react-testing-library'; import H2 from '../index'; describe('
', () => { it('should render a prop', () => { const id = 'testId'; const { container } = render(); expect(container.querySelector('h2').id).toEqual(id); }); it('should render its text', () => { const children = 'Text'; const { container, queryByText } = render(