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 Feb 15, 2019
1 parent 2ddee2d commit 37442fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/api-explorer/__tests__/SecurityInput.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ test('should render a Basic component if type is http/basic', () => {

test('should render an Oauth2 component if type is http/bearer', () => {
const props = { scheme: { type: 'http', scheme: 'bearer', _key: 'auth', name: 'auth' } };
const securityInput = shallow(<SecurityInput {...props} {...baseProps} auth={{ auth: '123456' }} />);
const securityInput = shallow(
<SecurityInput {...props} {...baseProps} auth={{ auth: '123456' }} />,
);
expect(securityInput.find('Oauth2').length).toBe(1);
});

Expand Down
6 changes: 3 additions & 3 deletions packages/api-explorer/src/lib/configure-security.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ module.exports = function configureSecurity(oas, values, scheme) {

return harValue('headers', {
name: 'Authorization',
value: `Basic ${new Buffer(
`${values[scheme].user}:${values[scheme].pass}`,
).toString('base64')}`,
value: `Basic ${new Buffer(`${values[scheme].user}:${values[scheme].pass}`).toString(
'base64',
)}`,
});
}

Expand Down

0 comments on commit 37442fa

Please sign in to comment.