Skip to content

Commit 78e95ea

Browse files
committed
Fix formatting.
1 parent 34d0457 commit 78e95ea

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/services/github.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const GITHUB_GIT_OPERATION_URL_PATTERN =
2525

2626
export class UnexpectedGithubCredentialsError extends Error {
2727
constructor() {
28-
super(
29-
'Expected GitHub credentials of the "Authorization: Bearer" form for repository access.'
30-
);
28+
super('Expected GitHub credentials of the "Authorization: Bearer" form for repository access.');
3129
this.name = 'UnexpectedGithubCredentialsError';
3230
}
3331
}

tests/github.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ describe('Github URL matching', () => {
3333
expect(SERVICE_REGISTRY.getByUrl('https://github.com/owner/repo/issues/1')).toBeNull();
3434
expect(SERVICE_REGISTRY.getByUrl('https://github.com/settings/tokens')).toBeNull();
3535
expect(SERVICE_REGISTRY.getByUrl('https://github.com/owner')).toBeNull();
36-
expect(
37-
SERVICE_REGISTRY.getByUrl('https://example.com/owner/repo.git/info/refs')
38-
).toBeNull();
36+
expect(SERVICE_REGISTRY.getByUrl('https://example.com/owner/repo.git/info/refs')).toBeNull();
3937
});
4038
});
4139

@@ -54,7 +52,10 @@ describe('Github.adjustCredentials', () => {
5452

5553
it('converts bearer credentials to basic auth for git operation URLs', async () => {
5654
const bearer = new AuthorizationBearer('token-123');
57-
const adjusted = GITHUB.adjustCredentials(bearer, 'https://github.com/owner/repo.git/info/refs');
55+
const adjusted = GITHUB.adjustCredentials(
56+
bearer,
57+
'https://github.com/owner/repo.git/info/refs'
58+
);
5859
expect(adjusted).toBeInstanceOf(GithubTokenBasicAuth);
5960

6061
const args = await adjusted.injectIntoCurlCall(['https://github.com/owner/repo.git']);

0 commit comments

Comments
 (0)