mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
fix nonexistant suite
This commit is contained in:

committed by
Geoff Seemueller

parent
068d8614e0
commit
48bedb8c74
@@ -223,25 +223,25 @@ describe('ChatService', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('handleChatRequest', () => {
|
// TODO: Fix this test suite
|
||||||
// TODO: Fix this test
|
// describe('handleChatRequest', () => {
|
||||||
// it('should call ChatSdk.handleChatRequest with correct parameters', async () => {
|
// it('should call ChatSdk.handleChatRequest with correct parameters', async () => {
|
||||||
// const mockRequest = new Request('https://example.com/chat');
|
// const mockRequest = new Request('https://example.com/chat');
|
||||||
// const mockResponse = new Response('Test response');
|
// const mockResponse = new Response('Test response');
|
||||||
//
|
//
|
||||||
// ChatSdk.handleChatRequest.mockResolvedValueOnce(mockResponse);
|
// ChatSdk.handleChatRequest.mockResolvedValueOnce(mockResponse);
|
||||||
// const result = await chatService.handleChatRequest(mockRequest);
|
// const result = await chatService.handleChatRequest(mockRequest);
|
||||||
//
|
//
|
||||||
// expect(ChatSdk.handleChatRequest).toHaveBeenCalledWith(mockRequest, {
|
// expect(ChatSdk.handleChatRequest).toHaveBeenCalledWith(mockRequest, {
|
||||||
// openai: chatService.openai,
|
// openai: chatService.openai,
|
||||||
// env: mockEnv,
|
// env: mockEnv,
|
||||||
// systemPrompt: chatService.systemPrompt,
|
// systemPrompt: chatService.systemPrompt,
|
||||||
// maxTokens: chatService.maxTokens,
|
// maxTokens: chatService.maxTokens,
|
||||||
// });
|
// });
|
||||||
//
|
//
|
||||||
// expect(result).toBe(mockResponse);
|
// expect(result).toBe(mockResponse);
|
||||||
// });
|
// });
|
||||||
});
|
// });
|
||||||
|
|
||||||
describe('handleSseStream', () => {
|
describe('handleSseStream', () => {
|
||||||
it('should return 409 if stream is already active', async () => {
|
it('should return 409 if stream is already active', async () => {
|
||||||
|
Reference in New Issue
Block a user