mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
test: remove 49 low-value test declarations (#37856)
This commit is contained in:
@@ -17,10 +17,7 @@ vi.mock('../github/client', async (importOriginal) => ({
|
||||
getPRForBranch: getPRForBranchMock
|
||||
}))
|
||||
|
||||
import {
|
||||
canCheckoutExistingLocalBranch,
|
||||
getLocalGitHubPrForBranch
|
||||
} from './runtime-worktree-create-git'
|
||||
import { canCheckoutExistingLocalBranch } from './runtime-worktree-create-git'
|
||||
|
||||
beforeEach(() => {
|
||||
getPRForBranchMock.mockReset()
|
||||
@@ -99,19 +96,3 @@ describe('explicit local branch reuse on the execution host', () => {
|
||||
expect(worktrees).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
describe('getLocalGitHubPrForBranch', () => {
|
||||
it('routes the PR lookup through the WSL distro', async () => {
|
||||
await getLocalGitHubPrForBranch('/repo', 'app', { wslDistro: 'Ubuntu' })
|
||||
|
||||
expect(getPRForBranchMock).toHaveBeenCalledWith('/repo', 'app', null, null, null, {
|
||||
localGitExecOptions: { wslDistro: 'Ubuntu' }
|
||||
})
|
||||
})
|
||||
|
||||
it('uses the plain lookup without project git options', async () => {
|
||||
await getLocalGitHubPrForBranch('/repo', 'app', {})
|
||||
|
||||
expect(getPRForBranchMock).toHaveBeenCalledWith('/repo', 'app')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user