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

afterEach(cleanup);

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

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