mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02:30
Move Organization screens and tests into new folder structure
This commit is contained in:
20
__tests__/pages/Organizations/Organizations.test.jsx
Normal file
20
__tests__/pages/Organizations/Organizations.test.jsx
Normal file
@@ -0,0 +1,20 @@
|
||||
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/Organizations';
|
||||
|
||||
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>
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user