import * as React from 'react';
import { shallow, mount } from 'enzyme';
import StoryImagePullQuote, { StyledAnchor } from '.';
import Image from '@Components/Image';
import 'jest-styled-components';
const PortraitImg =
'https://images.ctfassets.net/aagggu2xeezl/5vS7tZ47tj9BmyjLqAixIk/41c33ec048e1c4a9bb2006fe2f7c1ef4/2_3_H118_location_classic_texas_9942.jpg';
describe('StoryImagePullQuote component', () => {
test('renders', () => {
const wrapper = shallow(
);
expect(wrapper).toMatchSnapshot();
});
test('it applies default styles', () => {
const wrapper = mount(
);
expect(wrapper).toHaveStyleRule('display', 'grid');
});
test('it has one child Image Component, two Body Components and an Anchor Component', () => {
const wrapper = mount(
);
const ImageComp = wrapper.find(Image);
const TestAnchorComp = wrapper.find(StyledAnchor);
expect(ImageComp).toHaveLength(1);
expect(TestAnchorComp).toHaveLength(1);
});
});