{"size": 818, "ext": "js", "max_stars_repo_path": "app/src/js/applications/classifications/item/compare/home.spec.js", "max_stars_repo_name": "GuillaumeLahi/Bauhaus", "max_stars_repo_stars_event_min_datetime": "2020-04-21T07:45:08.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-28T18:18:13.000Z", "max_issues_repo_path": "app/src/js/applications/classifications/item/compare/home.spec.js", "max_issues_repo_name": "GuillaumeLahi/Bauhaus", "max_issues_repo_issues_event_min_datetime": "2018-05-28T15:29:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T06:36:40.000Z", "max_forks_repo_path": "app/src/js/applications/classifications/item/compare/home.spec.js", "max_forks_repo_name": "GuillaumeLahi/Bauhaus", "max_forks_repo_forks_event_min_datetime": "2018-04-06T06:47:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-21T10:28:32.000Z"}
{"max_stars_count": 3, "max_issues_count": 69, "max_forks_count": 11, "avg_line_length": 21.5263157895, "max_line_length": 48, "alphanum_fraction": 0.597799511}
import React from 'react';
import { render } from '@testing-library/react';
import Compare from './home';
import { MemoryRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import configureStore from 'redux-mock-store';

const mockStore = configureStore([]);
const store = mockStore({
	app: {
		secondLang: true,
	},
});

describe('concepts-compare', () => {
	it('renders without crashing', () => {
		render(
			<Provider store={store}>
				<Compare
					classificationId="classificationId"
					itemId="itemId"
					general={{
						prefLabelLg1: 'prefLabelLg1',
						isValidated: 'true',
						conceptVersion: '2',
					}}
					notes={{ '1': {}, '2': {} }}
					secondLang={false}
					langs={{ lg1: 'fr', lg2: 'en' }}
				/>
			</Provider>,
			{
				wrapper: MemoryRouter,
			}
		);
	});
});
