mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
14 lines
529 B
TypeScript
14 lines
529 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { assertValidGitPushTarget } from './git-push-target-validation'
|
|
|
|
describe('assertValidGitPushTarget', () => {
|
|
it('rejects remote names with empty or parent segments', () => {
|
|
expect(() =>
|
|
assertValidGitPushTarget({ remoteName: 'foo//bar', branchName: 'feature/fix' })
|
|
).toThrow('Invalid git remote name')
|
|
expect(() =>
|
|
assertValidGitPushTarget({ remoteName: 'foo/../bar', branchName: 'feature/fix' })
|
|
).toThrow('Invalid git remote name')
|
|
})
|
|
})
|