Fix prettier

Signed-off-by: Robert Schuh <github@eneticum.de>
This commit is contained in:
Robert Schuh
2022-09-04 02:21:39 +02:00
parent 42918e085c
commit 66952b3f28
@@ -42,13 +42,14 @@ describe('bitbucketServer core', () => {
username: 'u',
password: 'p',
};
const withBasicAuthAndTokenPrecedence: BitbucketServerIntegrationConfig = {
host: '',
apiBaseUrl: '',
token: 'A',
username: 'u',
password: 'p',
};
const withBasicAuthAndTokenPrecedence: BitbucketServerIntegrationConfig =
{
host: '',
apiBaseUrl: '',
token: 'A',
username: 'u',
password: 'p',
};
const withoutCredentials: BitbucketServerIntegrationConfig = {
host: '',
apiBaseUrl: '',
@@ -62,8 +63,10 @@ describe('bitbucketServer core', () => {
.Authorization,
).toEqual('Basic dTpw');
expect(
(getBitbucketServerRequestOptions(withBasicAuthAndTokenPrecedence).headers as any)
.Authorization,
(
getBitbucketServerRequestOptions(withBasicAuthAndTokenPrecedence)
.headers as any
).Authorization,
).toEqual('Bearer A');
expect(
(getBitbucketServerRequestOptions(withoutCredentials).headers as any)