Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
294 changes: 223 additions & 71 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/api-explorer/__tests__/Doc.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ describe('Response Schema', () => {
doc.setState({ showEndpoint: true });
expect(doc.find('ResponseSchema')).toHaveLength(1);
});

it('should not render Response Schema if endpoint does not have a response', () => {
const doc = shallow(
<Doc
Expand Down
1 change: 1 addition & 0 deletions packages/api-explorer/__tests__/SecurityInput.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('oauth2', () => {
});

it.skip('should display markdown description', () => {});

it.skip('should work for multiple oauths and allow selection', () => {});

it('should send auth apiKey into onChange()', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/api-explorer/__tests__/block-types/Image.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('Image', () => {
'https://files.readme.io/924824e-fullsizeoutput_314.jpeg',
);
});

it('Image will render caption if given in props', () => {
const block = {
type: 'image',
Expand Down
3 changes: 3 additions & 0 deletions packages/api-explorer/__tests__/lib/show-code.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ const extensions = require('@readme/oas-extensions');
const showCode = require('../../src/lib/show-code');

test.skip('should return true if there are examples', () => {});

test.skip('should return true if there are results', () => {});

test('should return true if it has try it now', () => {
expect(showCode({ [extensions.EXPLORER_ENABLED]: true }, {})).toBe(true);
});

test.skip('should return false otherwise', () => {});
881 changes: 803 additions & 78 deletions packages/api-explorer/package-lock.json

Large diffs are not rendered by default.

Loading