851036bac0
- Extract getVisibleSessions() helper to consolidate hidden-session filter used by renderGrid() and renderSidebar() (DRY reduction) - Add comment to terminal.js magic literal 600 noting it matches MOBILE_THRESHOLD in app.js - Move TERMINAL_JS_PATH and _TERMINAL_JS module fixtures to the top of the test file alongside JS_PATH and _JS for consistency - Strengthen test_render_grid_uses_visible_for_empty_state_check to assert visible.length specifically, distinguishing it from test_render_grid_creates_visible_array - Update renderGrid/renderSidebar filter tests to assert getVisibleSessions() call; add test_get_visible_sessions_filters_hidden_sessions to cover the extracted helper directly
2.7 KiB
2.7 KiB