Skip to content

Commit 78776b3

Browse files
committed
fix: small error output in tests
1 parent 3b1ee71 commit 78776b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/test/unit/server/chat/chatProcessor.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ suite('ChatProcessor Tests - Empty Message Validation', () => {
5959

6060
mockSessionManager = testEnv.sandbox.createStubInstance(SessionManager);
6161
mockSessionManager.getCurrentSessionId.returns('test-session-id');
62+
// Configure getSessions to return an empty array to prevent TypeError
63+
mockSessionManager.getSessions.returns([]);
6264

6365
chatProcessor = new ChatProcessor(mockServerManager as unknown as ServerManager);
6466
chatProcessor.setSessionManager(mockSessionManager as unknown as SessionManager);

0 commit comments

Comments
 (0)