mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
21 lines
654 B
JavaScript
21 lines
654 B
JavaScript
import React from 'react';
|
|
import { MemoryRouter } from 'react-router-dom';
|
|
import { mount } from 'enzyme';
|
|
import { I18nProvider } from '@lingui/react';
|
|
import Organizations from '../../../src/pages/Organizations/index';
|
|
|
|
describe('<Organizations />', () => {
|
|
test('initially renders succesfully', () => {
|
|
mount(
|
|
<MemoryRouter initialEntries={['/organizations']} initialIndex={0}>
|
|
<I18nProvider>
|
|
<Organizations
|
|
match={{ path: '/organizations', url: '/organizations' }}
|
|
location={{ search: '', pathname: '/organizations' }}
|
|
/>
|
|
</I18nProvider>
|
|
</MemoryRouter>
|
|
);
|
|
});
|
|
});
|