mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
17 lines
565 B
JavaScript
17 lines
565 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import { MemoryRouter } from 'react-router-dom';
|
|
import OrganizationEdit from '../../../../src/pages/Organizations/components/OrganizationEdit';
|
|
|
|
describe('<OrganizationEdit />', () => {
|
|
test('initially renders succesfully', () => {
|
|
mount(
|
|
<MemoryRouter initialEntries={['/organizations/1/edit']} initialIndex={0}>
|
|
<OrganizationEdit
|
|
match={{ path: '/organizations/:id/edit', url: '/organizations/1/edit', params: { id: 1 } }}
|
|
/>
|
|
</MemoryRouter>
|
|
);
|
|
});
|
|
});
|