mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 02:27:43 +00:00
test: remove low-value predicates, inventories and helper echoes (#33778)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { ghRepoExecOptions, githubRepoContext } from './github-repository-identity'
|
||||
|
||||
describe('ghRepoExecOptions ghAccount threading', () => {
|
||||
it('keeps ghAccount when cwd is present for local repos', () => {
|
||||
expect(
|
||||
ghRepoExecOptions(
|
||||
githubRepoContext('/repo', null, {
|
||||
wslDistro: 'Ubuntu',
|
||||
ghAccount: { host: 'github.com', user: 'Alice' }
|
||||
})
|
||||
)
|
||||
).toEqual({
|
||||
cwd: '/repo',
|
||||
wslDistro: 'Ubuntu',
|
||||
ghAccount: { host: 'github.com', user: 'Alice' }
|
||||
})
|
||||
})
|
||||
|
||||
it('keeps ghAccount when SSH omits cwd', () => {
|
||||
expect(
|
||||
ghRepoExecOptions(
|
||||
githubRepoContext('/remote/repo', 'ssh-1', {
|
||||
ghAccount: { host: 'github.acme.com', user: 'Bob' }
|
||||
})
|
||||
)
|
||||
).toEqual({
|
||||
ghAccount: { host: 'github.acme.com', user: 'Bob' }
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user