mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 10:27:34 -02:30
* Cleanup previous params logic from Notificaitons list * Add shared breadcrumbs and tabs components * Structure Organization screens to render only cardBody content * Add styles * Fetch organization when location changes
21 lines
670 B
JavaScript
21 lines
670 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/screens/Organization/OrganizationDetail';
|
|
|
|
describe('<OrganizationDetail />', () => {
|
|
test('initially renders succesfully', () => {
|
|
mount(
|
|
<I18nProvider>
|
|
<MemoryRouter initialEntries={['/organizations/1']} initialIndex={0}>
|
|
<OrganizationDetail
|
|
match={{ url: '/organizations/1' }}
|
|
organization={{ name: 'Default' }}
|
|
/>
|
|
</MemoryRouter>
|
|
</I18nProvider>
|
|
);
|
|
});
|
|
});
|