Refactor atCommandProcessor (#18461)

This commit is contained in:
Tommaso Sciortino
2026-02-06 12:49:11 -08:00
committed by GitHub
parent 7a8d6f6095
commit e844d4f45f
2 changed files with 349 additions and 320 deletions

View File

@@ -179,9 +179,6 @@ describe('handleAtCommand', () => {
expect(result).toEqual({
processedQuery: [{ text: queryWithSpaces }],
});
expect(mockOnDebugMessage).toHaveBeenCalledWith(
'Lone @ detected, will be treated as text in the modified query.',
);
});
it('should process a valid text file path', async () => {
@@ -441,9 +438,6 @@ describe('handleAtCommand', () => {
expect(mockOnDebugMessage).toHaveBeenCalledWith(
`Glob search for '**/*${invalidFile}*' found no files or an error. Path ${invalidFile} will be skipped.`,
);
expect(mockOnDebugMessage).toHaveBeenCalledWith(
'Lone @ detected, will be treated as text in the modified query.',
);
});
it('should return original query if all @paths are invalid or lone @', async () => {