import React from 'react';
import '@testing-library/jest-dom';
import { render } from '@testing-library/react';
import <%= props.name %>, { Props as TProps } from './component';

let wrapper = (props: TProps): JSX.Element => <<%= props.name %> {...props} />;

describe('<%= props.name %>', (): void => {
	afterAll((): void => (wrapper = null));

	it('should render', (): void => {
		const props: TProps = {
			id: 'jest',
		};

		const { getByTestId } = render(wrapper(props));

		expect(getByTestId('jest').className).toBe('<%= props.name %>');
	});
});