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

afterEach(cleanup);

test('should take a snapshot', () => {
	const { asFragment } = render(
		<GaugeSVG
			angle={30}
			colors={['#CE0D0D', '#E1D77D', '#50B058']}
			labels={[]}
			value={30}
		/>
	);

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