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

Commit

Permalink
Add test for case when splitReferenceDocs is set
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jun 24, 2019
1 parent 2694d04 commit 3321675
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/api-explorer/__tests__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,18 @@ describe('auth', () => {
expect(explorer.state('auth')).toEqual({ api_key: '123456', petstore_auth: '' });
});

it('should return nothing for lazy + `splitReferenceDocs`', () => {
const explorer = shallow(
<ApiExplorer
{...props}
appearance={{ splitReferenceDocs: true }}
/>,
);

const { lazyHash } = explorer.instance();
expect(lazyHash).toEqual({});
})

it('should disable lazy render first 5 projects', () => {
const explorer = shallow(<ApiExplorer {...props} />);

Expand Down

0 comments on commit 3321675

Please sign in to comment.