1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00
awx/__tests__/pages/Organizations/index.test.jsx

18 lines
553 B
React
Raw Normal View History

2018-11-30 18:19:24 +03:00
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
2018-12-04 22:46:18 +03:00
match={{ path: '/organizations', url: '/organizations' }}
2018-11-30 18:19:24 +03:00
location={{ search: '', pathname: '/organizations' }}
/>
</MemoryRouter>
);
});
});