fix final logged errors in tests

This commit is contained in:
Keith J. Grant 2021-07-07 15:10:55 -07:00
parent 226ffafbd6
commit 78d6e21256
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import PropTypes, { oneOfType, string, arrayOf } from 'prop-types';
import { matchPath, Link, withRouter } from 'react-router-dom';
import { NavExpandable, NavItem } from '@patternfly/react-core';
@ -58,9 +58,9 @@ class NavExpandableGroup extends Component {
}
NavExpandableGroup.propTypes = {
groupId: PropTypes.string.isRequired,
groupTitle: PropTypes.element.isRequired,
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
groupId: string.isRequired,
groupTitle: oneOfType([PropTypes.element, string]).isRequired,
routes: arrayOf(PropTypes.object).isRequired,
};
export default withRouter(NavExpandableGroup);

View File

@ -116,7 +116,7 @@ describe('<WorkflowJobTemplateAdd/>', () => {
description: '',
extra_vars: '---',
inventory: undefined,
limit: null,
limit: '',
organization: undefined,
scm_branch: '',
webhook_credential: undefined,

View File

@ -290,7 +290,7 @@ const FormikApp = withFormik({
organization: template?.summary_fields?.organization || null,
labels: template.summary_fields?.labels?.results || [],
extra_vars: template.extra_vars || '---',
limit: template.limit || null,
limit: template.limit || '',
scm_branch: template.scm_branch || '',
allow_simultaneous: template.allow_simultaneous || false,
webhook_credential: template?.summary_fields?.webhook_credential || null,