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

Commit 37442fa

Browse files
committed
Prettier
1 parent 2ddee2d commit 37442fa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/api-explorer/__tests__/SecurityInput.test.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ test('should render a Basic component if type is http/basic', () => {
2828

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

packages/api-explorer/src/lib/configure-security.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ module.exports = function configureSecurity(oas, values, scheme) {
1818

1919
return harValue('headers', {
2020
name: 'Authorization',
21-
value: `Basic ${new Buffer(
22-
`${values[scheme].user}:${values[scheme].pass}`,
23-
).toString('base64')}`,
21+
value: `Basic ${new Buffer(`${values[scheme].user}:${values[scheme].pass}`).toString(
22+
'base64',
23+
)}`,
2424
});
2525
}
2626

0 commit comments

Comments
 (0)