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',
});
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);

View File

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

View File

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