mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
test(github): expose SSH probe generation in mocks
This commit is contained in:
@@ -85,6 +85,7 @@ vi.mock('./github-enterprise-repository', () => ({
|
||||
}))
|
||||
|
||||
vi.mock('../providers/ssh-git-dispatch', () => ({
|
||||
getSshGitProviderGeneration: vi.fn(() => 0),
|
||||
getSshGitProvider: vi.fn()
|
||||
}))
|
||||
|
||||
|
||||
@@ -132,12 +132,14 @@ export function gitRunnerModuleMock(mocks: GitHubClientMocks): GitRunnerModuleMo
|
||||
}
|
||||
|
||||
export type SshGitDispatchModuleMock = {
|
||||
getSshGitProviderGeneration: Mock
|
||||
getSshGitProvider: Mock
|
||||
SSH_GIT_PROVIDER_UNAVAILABLE_MESSAGE: string
|
||||
}
|
||||
|
||||
export function sshGitDispatchModuleMock(mocks: GitHubClientMocks): SshGitDispatchModuleMock {
|
||||
return {
|
||||
getSshGitProviderGeneration: vi.fn(() => 0),
|
||||
getSshGitProvider: mocks.getSshGitProviderMock,
|
||||
SSH_GIT_PROVIDER_UNAVAILABLE_MESSAGE: 'Remote connection dropped.'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user