expect(shallowRender({ component })).toMatchSnapshot('default');
});
-it('should render without description', () => {
- const component = mockComponent({ description: undefined });
+it('should render with description', () => {
+ const component = mockComponent({ description: 'Lorem ipsum' });
expect(shallowRender({ component })).toMatchSnapshot();
});
</Fragment>
`;
-exports[`should render without description 1`] = `
+exports[`should render with description 1`] = `
<Fragment>
<div>
<h2
project.info.description
</h3>
</div>
+ <p
+ className="it__project-description"
+ >
+ Lorem ipsum
+ </p>
<MetaTags
component={
Object {
"breadcrumbs": Array [],
- "description": undefined,
+ "description": "Lorem ipsum",
"key": "my-project",
"name": "MyProject",
"organization": "foo",
component={
Object {
"breadcrumbs": Array [],
- "description": undefined,
+ "description": "Lorem ipsum",
"key": "my-project",
"name": "MyProject",
"organization": "foo",
component={
Object {
"breadcrumbs": Array [],
- "description": undefined,
+ "description": "Lorem ipsum",
"key": "my-project",
"name": "MyProject",
"organization": "foo",