mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-23 18:29:21 -05:00
Fix test for vectorSearchService
Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
@@ -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([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user