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

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jan 29, 2019
1 parent aea2002 commit a159e02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/api-explorer/__tests__/lib/get-auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ it('should fetch all auths from the OAS files', () => {

it('should not error if oas.components is not set', () => {
expect(() => {
getAuth({ oauthScheme: 'oauth', apiKeyScheme: 'apikey' }, { 'api-setting': {} })
getAuth({ oauthScheme: 'oauth', apiKeyScheme: 'apikey' }, { 'api-setting': {} });
}).not.toThrow();

expect(() => {
getAuth({ oauthScheme: 'oauth', apiKeyScheme: 'apikey' }, { 'api-setting': { components: {} } })
getAuth(
{ oauthScheme: 'oauth', apiKeyScheme: 'apikey' },
{ 'api-setting': { components: {} } },
);
}).not.toThrow();
});

Expand Down

0 comments on commit a159e02

Please sign in to comment.