add about page tests

This commit is contained in:
John Mitchell 2018-11-02 17:46:43 -04:00
parent 96b8ab47c4
commit 08d2718f5e
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -0,0 +1,15 @@
import React from 'react';
import { mount } from 'enzyme';
import About from '../../src/components/About';
let aboutWrapper;
let headerElem;
describe('<About />', () => {
test('initially renders without crashing', () => {
aboutWrapper = mount(<About />);
headerElem = aboutWrapper.find('h2');
expect(aboutWrapper.length).toBe(1);
expect(headerElem.length).toBe(1);
});
});