mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
* add enzyme test helper with lingui provider * add router context to enzyme test helper * get 18n, router, & config contexts rendering together in enzyme helper * add config context to enzyme helpers * add network and dialog contexts to enzymeHelpers * convert OrganizationForm tests to use new mountWithContexts helper * default all context value keys to default unless provided * document use of mountWithContexts() * fix typo in CONTRIBUTING.md * update Organizations to use mountWithContext
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
import React from 'react';
|
|
import { mountWithContexts } from '../../enzymeHelpers';
|
|
import Organizations from '../../../src/pages/Organizations/Organizations';
|
|
|
|
describe('<Organizations />', () => {
|
|
test('initially renders succesfully', () => {
|
|
mountWithContexts(
|
|
<Organizations
|
|
match={{ path: '/organizations', url: '/organizations' }}
|
|
location={{ search: '', pathname: '/organizations' }}
|
|
/>
|
|
);
|
|
});
|
|
});
|