From 18cacca2d02a8a1f68ea9f0fc3f35dcedb8a72f9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 30 Nov 2025 12:19:44 +0000 Subject: [PATCH] Fix test for vectorSearchService Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com> --- tests/services/vectorSearchService.test.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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([]); });