2017-09-06 15:47:04 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { shallow } from 'enzyme';
|
|
|
|
import ProjectListItem from '../ProjectListItem';
|
2017-09-29 18:24:45 +00:00
|
|
|
import createHistory from 'history/createBrowserHistory';
|
2017-09-06 15:47:04 +00:00
|
|
|
const projectMock = require('../../tests/utils/MockLoader').load("project.json");
|
|
|
|
|
|
|
|
describe('<ProjectListItem />', () => {
|
|
|
|
it('renders without exploding', () => {
|
|
|
|
const wrapper = shallow(<ProjectListItem
|
2017-09-29 18:24:45 +00:00
|
|
|
history={createHistory()}
|
2017-09-06 15:47:04 +00:00
|
|
|
data={projectMock} />);
|
|
|
|
expect(wrapper.exists()).toBe(true);
|
|
|
|
})
|
|
|
|
});
|