()
| 73 | } |
| 74 | |
| 75 | function createAiService(): AIService { |
| 76 | return { |
| 77 | on() { |
| 78 | return this; |
| 79 | }, |
| 80 | off() { |
| 81 | return this; |
| 82 | }, |
| 83 | isStreaming: () => false, |
| 84 | stopStream: mock(() => Promise.resolve({ success: true as const, data: undefined })), |
| 85 | } as unknown as AIService; |
| 86 | } |
| 87 | |
| 88 | function createInitStateManager(): InitStateManager { |
| 89 | return { |
no test coverage detected