diff --git a/tests/services/vectorSearchService.test.ts b/tests/services/vectorSearchService.test.ts index 58b6ac3..fc5ac1f 100644 --- a/tests/services/vectorSearchService.test.ts +++ b/tests/services/vectorSearchService.test.ts @@ -53,11 +53,7 @@ describe('vectorSearchService', () => { // When serverNames is an empty array (empty group), no results should be returned const result = await searchToolsByVector('test query', 10, 0.3, []); - // searchByText should NOT be called because we return early with empty results - const mockRepository = (getRepositoryFactory as jest.Mock)(); - expect(mockRepository.searchByText).not.toHaveBeenCalled; - - // Result should be empty + // Result should be empty when an empty server list is passed expect(result).toEqual([]); });