Fit linter and tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { PureComponent } from "react"
|
import React, { PureComponent } from "react"
|
||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
import { fromJS, List } from "immutable"
|
import { fromJS } from "immutable"
|
||||||
import { getSampleSchema } from "core/utils"
|
import { getSampleSchema } from "core/utils"
|
||||||
|
|
||||||
const NOOP = Function.prototype
|
const NOOP = Function.prototype
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import React from "react"
|
|||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
import ImPropTypes from "react-immutable-proptypes"
|
import ImPropTypes from "react-immutable-proptypes"
|
||||||
import { OrderedMap } from "immutable"
|
import { OrderedMap } from "immutable"
|
||||||
import { getSampleSchema } from "core/utils"
|
|
||||||
|
|
||||||
|
|
||||||
const RequestBody = ({
|
const RequestBody = ({
|
||||||
requestBody,
|
requestBody,
|
||||||
@@ -49,7 +47,9 @@ RequestBody.propTypes = {
|
|||||||
requestBody: ImPropTypes.orderedMap.isRequired,
|
requestBody: ImPropTypes.orderedMap.isRequired,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
contentType: PropTypes.string.isRequired
|
contentType: PropTypes.string.isRequired,
|
||||||
|
isExecute: PropTypes.bool.isRequired,
|
||||||
|
onChange: PropTypes.func.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
export default RequestBody
|
export default RequestBody
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { createSelector } from "reselect"
|
|
||||||
import { OrderedMap } from "immutable"
|
import { OrderedMap } from "immutable"
|
||||||
import { isOAS3 as isOAS3Helper } from "./helpers"
|
import { isOAS3 as isOAS3Helper } from "./helpers"
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ class Parameters extends Component {
|
|||||||
operation: PropTypes.object.isRequired,
|
operation: PropTypes.object.isRequired,
|
||||||
getComponent: PropTypes.func.isRequired,
|
getComponent: PropTypes.func.isRequired,
|
||||||
specSelectors: PropTypes.object.isRequired,
|
specSelectors: PropTypes.object.isRequired,
|
||||||
|
oas3Actions: PropTypes.object.isRequired,
|
||||||
|
oas3Selectors: PropTypes.object.isRequired,
|
||||||
fn: PropTypes.object.isRequired,
|
fn: PropTypes.object.isRequired,
|
||||||
tryItOutEnabled: PropTypes.bool,
|
tryItOutEnabled: PropTypes.bool,
|
||||||
allowTryItOut: PropTypes.bool,
|
allowTryItOut: PropTypes.bool,
|
||||||
|
|||||||
@@ -113,7 +113,8 @@ describe("spec plugin - actions", function(){
|
|||||||
spec: () => fromJS({}),
|
spec: () => fromJS({}),
|
||||||
parameterValues: () => fromJS({}),
|
parameterValues: () => fromJS({}),
|
||||||
contentTypeValues: () => fromJS({}),
|
contentTypeValues: () => fromJS({}),
|
||||||
url: () => fromJS({})
|
url: () => fromJS({}),
|
||||||
|
isOAS3: () => false
|
||||||
},
|
},
|
||||||
getConfigs: () => configs
|
getConfigs: () => configs
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user