Browse Source

fix: lint and format issues in tests

Michael Henke 1 month ago
parent
commit
a5b5857bbb

+ 1 - 1
src/multiplexer/session-manager.test.ts

@@ -727,7 +727,7 @@ describe('MultiplexerSessionManager', () => {
       });
 
       mockMultiplexer.isInsideSession.mockReturnValue(false);
-      const disabledManager = new MultiplexerSessionManager(
+      const _disabledManager = new MultiplexerSessionManager(
         ctx,
         defaultMultiplexerConfig,
         coordinator,

+ 2 - 4
src/utils/background-job-coordinator.test.ts

@@ -69,8 +69,7 @@ describe('BackgroundJobCoordinator', () => {
     board.isRunning.mockReturnValue(false);
 
     // Trigger handleTerminalState via board's listener callback
-    const boardListener =
-      board.addTerminalStateListener.mock.calls[0]?.[0];
+    const boardListener = board.addTerminalStateListener.mock.calls[0]?.[0];
     boardListener?.('ses_123');
 
     expect(listener).toHaveBeenCalledWith('ses_123');
@@ -85,8 +84,7 @@ describe('BackgroundJobCoordinator', () => {
 
     // Simulate terminal state notification without deferring first
     board.getState.mockReturnValue('completed');
-    const boardListener =
-      board.addTerminalStateListener.mock.calls[0]?.[0];
+    const boardListener = board.addTerminalStateListener.mock.calls[0]?.[0];
     boardListener?.('ses_123');
 
     expect(listener).not.toHaveBeenCalled();