import { render } from '@testing-library/react'; import { ModalHeader } from '../ModalHeader'; test('ModalHeader Test', () => { const { asFragment } = render(This is a ModalBox header); expect(asFragment()).toMatchSnapshot(); }); test('ModalHeader help renders', () => { const { asFragment } = render(test}>This is a ModalBox header); expect(asFragment()).toMatchSnapshot(); }); test('Modal Test with custom header', () => { const header = TEST; const { asFragment } = render({header}); expect(asFragment()).toMatchSnapshot(); });