import React from 'react';
import { render, cleanup } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { AccordionHeader } from './';

afterEach(cleanup);

test('should take a snapshot', () => {
	const { asFragment } = render(
		<AccordionHeader title="Test Accordion Header" toggle={() => {}} />
	);

	expect(asFragment()).toMatchSnapshot();
});
