mirror of
https://github.com/zadam/trilium.git
synced 2025-11-21 16:14:23 +01:00
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:
parent
5eb791fd65
commit
18a198496b
@ -45,7 +45,7 @@ vi.mock('./providers/openai_service.js', () => ({
|
||||
OpenAIService: vi.fn().mockImplementation(function () {
|
||||
this.isAvailable = vi.fn().mockReturnValue(true);
|
||||
this.generateChatCompletion = vi.fn();
|
||||
};
|
||||
})
|
||||
}));
|
||||
|
||||
vi.mock('./providers/ollama_service.js', () => ({
|
||||
|
||||
@ -51,7 +51,7 @@ vi.mock('./pipeline/chat_pipeline.js', () => ({
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
})
|
||||
}));
|
||||
|
||||
vi.mock('./ai_service_manager.js', () => ({
|
||||
|
||||
@ -49,7 +49,7 @@ vi.mock('../../ai_service_manager.js', () => ({
|
||||
vi.mock('../index.js', () => ({
|
||||
ContextExtractor: vi.fn().mockImplementation(function () {
|
||||
this.findRelevantNotes = vi.fn().mockResolvedValue([])
|
||||
});
|
||||
})
|
||||
}));
|
||||
|
||||
describe('ContextService', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user