mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
fix Template(s)List naming discrepancies
This commit is contained in:
@@ -29,7 +29,7 @@ const QS_CONFIG = getQSConfig('template', {
|
|||||||
type: 'job_template,workflow_job_template',
|
type: 'job_template,workflow_job_template',
|
||||||
});
|
});
|
||||||
|
|
||||||
function TemplatesList({ i18n }) {
|
function TemplateList({ i18n }) {
|
||||||
const { id: projectId } = useParams();
|
const { id: projectId } = useParams();
|
||||||
const { pathname, search } = useLocation();
|
const { pathname, search } = useLocation();
|
||||||
|
|
||||||
@@ -252,5 +252,5 @@ function TemplatesList({ i18n }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export { TemplatesList as _TemplatesList };
|
export { TemplateList as _TemplatesList };
|
||||||
export default withI18n()(TemplatesList);
|
export default withI18n()(TemplateList);
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const mockTemplates = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
describe('<TemplatesList />', () => {
|
describe('<TemplateList />', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
UnifiedJobTemplatesAPI.read.mockResolvedValue({
|
UnifiedJobTemplatesAPI.read.mockResolvedValue({
|
||||||
data: {
|
data: {
|
||||||
@@ -4,7 +4,7 @@ import { mountWithContexts } from '@testUtils/enzymeHelpers';
|
|||||||
|
|
||||||
import TemplatesListItem from './TemplateListItem';
|
import TemplatesListItem from './TemplateListItem';
|
||||||
|
|
||||||
describe('<TemplatesListItem />', () => {
|
describe('<TemplateListItem />', () => {
|
||||||
test('launch button shown to users with start capabilities', () => {
|
test('launch button shown to users with start capabilities', () => {
|
||||||
const wrapper = mountWithContexts(
|
const wrapper = mountWithContexts(
|
||||||
<TemplatesListItem
|
<TemplatesListItem
|
||||||
Reference in New Issue
Block a user