fix Template(s)List naming discrepancies

This commit is contained in:
Keith Grant
2020-02-11 10:24:08 -08:00
parent 1ad7e663a1
commit f61af39f08
3 changed files with 5 additions and 5 deletions

View File

@@ -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);

View File

@@ -71,7 +71,7 @@ const mockTemplates = [
}, },
]; ];
describe('<TemplatesList />', () => { describe('<TemplateList />', () => {
beforeEach(() => { beforeEach(() => {
UnifiedJobTemplatesAPI.read.mockResolvedValue({ UnifiedJobTemplatesAPI.read.mockResolvedValue({
data: { data: {

View File

@@ -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