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

21 lines
654 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';
2018-12-10 18:16:52 +03:00
import { I18nProvider } from '@lingui/react';
2018-11-30 18:19:24 +03:00
import Organizations from '../../../src/pages/Organizations/index';
describe('<Organizations />', () => {
test('initially renders succesfully', () => {
mount(
<MemoryRouter initialEntries={['/organizations']} initialIndex={0}>
2018-12-10 18:16:52 +03:00
<I18nProvider>
<Organizations
match={{ path: '/organizations', url: '/organizations' }}
location={{ search: '', pathname: '/organizations' }}
/>
</I18nProvider>
2018-11-30 18:19:24 +03:00
</MemoryRouter>
);
});
});