diff --git a/src/adapters/git.test.ts b/src/adapters/git.test.ts index 164926bc..b039f2c9 100644 --- a/src/adapters/git.test.ts +++ b/src/adapters/git.test.ts @@ -7,6 +7,14 @@ jest.mock('simple-git'); jest.mock('fs-extra'); class TestGitAdapter extends GitAdapter { + // @ts-ignore + createIssue(repo: IRepo): Promise { + return Promise.resolve(''); + } + // @ts-ignore + updateIssue(repo: IRepo, issueNumber: number): Promise { + return Promise.resolve(); + } // @ts-ignore getCandidateRepos(onRetry: RetryMethod): Promise { return Promise.resolve([]); diff --git a/src/adapters/github.test.ts b/src/adapters/github.test.ts index 440df492..71d08ed6 100644 --- a/src/adapters/github.test.ts +++ b/src/adapters/github.test.ts @@ -268,17 +268,19 @@ describe('GithubAdapter', () => { it('returns the SSH URL, when not given a protocol', () => { delete process.env.SHEPHERD_GITHUB_PROTOCOL; - expect(adapter['getRepositoryUrl'](repo)).toBe('git@github.com:NerdWallet/shepherd.git'); + expect(adapter['getRepositoryUrl'](repo)).toBe('git@api.github.com:NerdWallet/shepherd.git'); }); it('returns the SSH URL, when given protocol=ssh', () => { process.env.SHEPHERD_GITHUB_PROTOCOL = 'ssh'; - expect(adapter['getRepositoryUrl'](repo)).toBe('git@github.com:NerdWallet/shepherd.git'); + expect(adapter['getRepositoryUrl'](repo)).toBe('git@api.github.com:NerdWallet/shepherd.git'); }); it('returns the HTTPS URL when given protocol=https', () => { process.env.SHEPHERD_GITHUB_PROTOCOL = 'https'; - expect(adapter['getRepositoryUrl'](repo)).toBe('https://github.com/NerdWallet/shepherd.git'); + expect(adapter['getRepositoryUrl'](repo)).toBe( + 'https://api.github.com/NerdWallet/shepherd.git' + ); }); it('throws on unexpected protocols', () => {