Skip to content

Commit

Permalink
Update test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
YesImKenny committed Feb 27, 2019
1 parent e3f033f commit d032da6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions client/components/MapText.test.jsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
import React from 'react';
import { shallow, mount, render } from 'enzyme';

import { configure } from 'enzyme';
import { shallow, mount } from 'enzyme';
import MapText from './MapText';
import Adapter from 'enzyme-adapter-react-16';

configure({ adapter: new Adapter() });

function setup() {
const props = {
imgPath: 'some/image/path/to/a/mock/image',
};
const wrapper = shallow(<MapText />);
return { wrapper };
}

describe('MapText Test Suite', () => {
// it('should render without throwing an error', function() {
// expect(shallow(<MapText />).contains(<div className="map-text"></div>)).toBe(true);
// });

// it('should render to static HTML', function() {
// expect(render(<MapText />).text()).toEqual();
// });

it('Should have a ul', () => {
const { wrapper } = setup();
expect(wrapper.find('ul').exists()).toBe(true);
Expand Down

0 comments on commit d032da6

Please sign in to comment.