diff --git a/__tests__/src/components/ManifestMetadata.test.js b/__tests__/src/components/ManifestMetadata.test.js deleted file mode 100644 index 3436414e1b346de5bb2944af77cd0691a31b05f1..0000000000000000000000000000000000000000 --- a/__tests__/src/components/ManifestMetadata.test.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react'; -import { shallow } from 'enzyme'; -import createStore from '../../../src/state/createStore'; -import * as actions from '../../../src/state/actions'; -import ManifestMetadata from '../../../src/components/ManifestMetadata'; -import fixture from '../../fixtures/version-2/002.json'; - -describe('ManifestMetadata', () => { - let wrapper; - let manifest; - const store = createStore(); - beforeEach(() => { - store.dispatch(actions.receiveManifest('foo', fixture)); - manifest = store.getState().manifests.foo; - wrapper = shallow(<ManifestMetadata manifest={manifest} />); - }); - - it('renders without an error', () => { - expect(wrapper.find('h3').text()).toBe('Test 2 Manifest: Metadata Pairs'); - expect(wrapper.find('.mirador-description').length).toBe(1); - }); -}); diff --git a/src/components/ManifestMetadata.js b/src/components/ManifestMetadata.js deleted file mode 100644 index 2f79254a7dfc59c14e0ba3acb81d939237cb6261..0000000000000000000000000000000000000000 --- a/src/components/ManifestMetadata.js +++ /dev/null @@ -1,35 +0,0 @@ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import ns from '../config/css-ns'; - -/** - * ManifestMetadata - * @param {object} window - */ -export default class ManifestMetadata extends Component { - /** - * Renders things - * @param {object} props - */ - render() { - const { manifest } = this.props; - return ( - <div> - <h3> - {manifest.manifestation.getLabel().map(label => label.value)[0]} - </h3> - <div className={ns('description')}> - {manifest.manifestation.getDescription().map(label => label.value)} - </div> - </div> - ); - } -} - -ManifestMetadata.propTypes = { - manifest: PropTypes.object, // eslint-disable-line react/forbid-prop-types -}; - -ManifestMetadata.defaultProps = { - manifest: null, -};