|
import { shallow } from '@theforeman/test';
|
|
import React from 'react';
|
|
import FactChart from '..';
|
|
import Store from '../../../redux';
|
|
|
|
describe('factCharts', () => {
|
|
it('should render closed', () => {
|
|
const wrapper = shallow(
|
|
<FactChart data={{ id: 1, title: 'test title' }} store={Store} />
|
|
);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
|
|
it('should render open', () => {
|
|
const wrapper = shallow(
|
|
<FactChart
|
|
data={{ id: 1, title: 'test title' }}
|
|
modalToDisplay
|
|
store={Store}
|
|
/>
|
|
);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|