test(shared): drop the duplicated separator-only git grep test (#21116)

55ae3b393c pasted the same test twice under one title; the code-quality lint denies duplicate titles, so every PR's static-analysis job has been red since.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
Jinwoo Hong
2026-09-16 20:38:58 -04:00
committed by GitHub
parent aad41b1a40
commit de4dab93cb
-17
View File
@@ -405,23 +405,6 @@ describe('ingestGitGrepLine', () => {
expect(f.matches[0]).toMatchObject({ line: 10, column: 1, matchLength: 12 })
})
it('does not broaden a separator-only include pattern to the repository', () => {
const rootPath = mkdtempSync(join(tmpdir(), 'orca-search-git-'))
try {
execFileSync('git', ['init'], { cwd: rootPath, stdio: 'ignore' })
writeFileSync(join(rootPath, 'target.ts'), 'needle\n')
expect(() =>
execFileSync('git', buildGitGrepArgs('needle', { includePattern: '/' }), {
cwd: rootPath,
stdio: 'ignore'
})
).toThrow()
} finally {
rmSync(rootPath, { recursive: true, force: true })
}
})
it('handles colons in filenames via null delimiter', () => {
const acc = createAccumulator()
const re = buildSubmatchRegex('x', {})