import * as React from 'react'; import { render } from '@testing-library/react'; import { ModalBoxHeader } from '../ModalBoxHeader'; test('ModalBoxHeader Test', () => { const { asFragment } = render(This is a ModalBox header); expect(asFragment()).toMatchSnapshot(); }); test('ModalBoxHeader help renders', () => { const { asFragment } = render(test}>This is a ModalBox header); expect(asFragment()).toMatchSnapshot(); });