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