Fix syntax errors in LLM service test mocks

Fixed vi.mock() syntax errors that were preventing tests from running.

Co-authored-by: eliandoran <21236836+eliandoran@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-05 18:16:47 +00:00
parent 5eb791fd65
commit 18a198496b
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ vi.mock('./providers/openai_service.js', () => ({
OpenAIService: vi.fn().mockImplementation(function () { OpenAIService: vi.fn().mockImplementation(function () {
this.isAvailable = vi.fn().mockReturnValue(true); this.isAvailable = vi.fn().mockReturnValue(true);
this.generateChatCompletion = vi.fn(); this.generateChatCompletion = vi.fn();
}; })
})); }));
vi.mock('./providers/ollama_service.js', () => ({ vi.mock('./providers/ollama_service.js', () => ({

View File

@ -51,7 +51,7 @@ vi.mock('./pipeline/chat_pipeline.js', () => ({
} }
} }
}); });
}); })
})); }));
vi.mock('./ai_service_manager.js', () => ({ vi.mock('./ai_service_manager.js', () => ({

View File

@ -49,7 +49,7 @@ vi.mock('../../ai_service_manager.js', () => ({
vi.mock('../index.js', () => ({ vi.mock('../index.js', () => ({
ContextExtractor: vi.fn().mockImplementation(function () { ContextExtractor: vi.fn().mockImplementation(function () {
this.findRelevantNotes = vi.fn().mockResolvedValue([]) this.findRelevantNotes = vi.fn().mockResolvedValue([])
}); })
})); }));
describe('ContextService', () => { describe('ContextService', () => {