Fit linter and tests

This commit is contained in:
Kyle Shockey
2017-09-08 18:44:11 -07:00
parent a58e6eb766
commit 5bc096d32b
5 changed files with 8 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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