mirror of
https://github.com/stablyai/orca.git
synced 2026-09-21 16:02:20 +00:00
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:
@@ -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', {})
|
||||
|
||||
Reference in New Issue
Block a user