mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
21 lines
706 B
JavaScript
21 lines
706 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import { MemoryRouter } from 'react-router-dom';
|
|
import { I18nProvider } from '@lingui/react';
|
|
import OrganizationDetail from '../../../../src/pages/Organizations/components/OrganizationDetail';
|
|
|
|
describe('<OrganizationDetail />', () => {
|
|
test('initially renders succesfully', () => {
|
|
mount(
|
|
<I18nProvider>
|
|
<MemoryRouter initialEntries={['/organizations/1']} initialIndex={0}>
|
|
<OrganizationDetail
|
|
match={{ path: '/organizations/:id', url: '/organizations/1' }}
|
|
location={{ search: '', pathname: '/organizations/1' }}
|
|
/>
|
|
</MemoryRouter>
|
|
</I18nProvider>
|
|
);
|
|
});
|
|
});
|