mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 03:31:10 -03:30
add FormRow component; rename unwrapped components with underscore
This commit is contained in:
5
__tests__/.eslintrc
Normal file
5
__tests__/.eslintrc
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"react/jsx-pascal-case": "ignore"
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { I18nProvider } from '@lingui/react';
|
||||
import OrganizationEdit, { OrganizationEditNoRouter } from '../../../../../src/pages/Organizations/screens/Organization/OrganizationEdit';
|
||||
import OrganizationEdit, { _OrganizationEdit } from '../../../../../src/pages/Organizations/screens/Organization/OrganizationEdit';
|
||||
|
||||
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
@@ -94,7 +94,7 @@ describe('<OrganizationEdit />', () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter>
|
||||
<I18nProvider>
|
||||
<OrganizationEditNoRouter
|
||||
<_OrganizationEdit
|
||||
history={history}
|
||||
organization={mockData}
|
||||
api={api}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { mount } from 'enzyme';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { I18nProvider } from '@lingui/react';
|
||||
import { ConfigContext } from '../../../../src/context';
|
||||
import OrganizationAdd, { OrganizationAddNoRouter } from '../../../../src/pages/Organizations/screens/OrganizationAdd';
|
||||
import OrganizationAdd, { _OrganizationAdd } from '../../../../src/pages/Organizations/screens/OrganizationAdd';
|
||||
|
||||
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
||||
|
||||
@@ -47,7 +47,7 @@ describe('<OrganizationAdd />', () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter>
|
||||
<I18nProvider>
|
||||
<OrganizationAddNoRouter
|
||||
<_OrganizationAdd
|
||||
history={history}
|
||||
api={api}
|
||||
/>
|
||||
@@ -68,7 +68,7 @@ describe('<OrganizationAdd />', () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter>
|
||||
<I18nProvider>
|
||||
<OrganizationAddNoRouter
|
||||
<_OrganizationAdd
|
||||
history={history}
|
||||
api={api}
|
||||
/>
|
||||
@@ -103,7 +103,7 @@ describe('<OrganizationAdd />', () => {
|
||||
const wrapper = mount(
|
||||
<MemoryRouter>
|
||||
<I18nProvider>
|
||||
<OrganizationAddNoRouter
|
||||
<_OrganizationAdd
|
||||
history={history}
|
||||
api={api}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user