working commit tests

This commit is contained in:
John Mitchell
2018-11-30 10:19:24 -05:00
parent 12c8267b12
commit aab6aa4ef9
14 changed files with 108 additions and 149 deletions

View File

@@ -0,0 +1,17 @@
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { mount } from 'enzyme';
import Organizations from '../../../src/pages/Organizations/index';
describe('<Organizations />', () => {
test('initially renders succesfully', () => {
mount(
<MemoryRouter initialEntries={['/organizations']} initialIndex={0}>
<Organizations
match={{ path: '/organizations', route: '/organizations', link: 'organizations' }}
location={{ search: '', pathname: '/organizations' }}
/>
</MemoryRouter>
);
});
});