Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
More touch ups from pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
uppal101 committed Sep 22, 2017
1 parent 61d4327 commit f30b850
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/__tests__/Doc.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('state.dirty', () => {
});

describe('onSubmit', () => {
test.only('should switch to true if auth is required and correct security is not passed', () => {
test('should switch to true if auth is required and correct security is not passed', () => {
// TODO use simulate instead of instance of example commented out:
// const props2 = {
// doc: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const isAuthReady = require('../../src/lib/auth-required');
const isAuthReady = require('../../src/lib/is-auth-ready');
const Oas = require('../../src/lib/Oas.js');
const petstore = require('../fixtures/petstore/oas');
const auth = require('../fixtures/auth-types/oas');
Expand Down
2 changes: 1 addition & 1 deletion packages/api-explorer-ui/src/Doc.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const React = require('react');
const PropTypes = require('prop-types');
const isAuthReady = require('./lib/auth-required');
const isAuthReady = require('./lib/is-auth-ready');
const extensions = require('../../readme-oas-extensions');

const PathUrl = require('./PathUrl');
Expand Down
5 changes: 1 addition & 4 deletions packages/api-explorer-ui/src/Params.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ Params.propTypes = {
operation: PropTypes.instanceOf(Operation).isRequired,
formData: PropTypes.shape({}).isRequired,
onChange: PropTypes.func.isRequired,
onSubmit: PropTypes.func,
onSubmit: PropTypes.func.isRequired,
};

Params.defaultProps = {
onSubmit: true,
};
module.exports = Params;

0 comments on commit f30b850

Please sign in to comment.