semantic update
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// @RELATION: VERIFIES -> frontend/src/lib/stores/sidebar.js
|
||||
// [DEF:frontend.src.lib.stores.__tests__.sidebar:Module]
|
||||
// @TIER: STANDARD
|
||||
// @SEMANTICS: sidebar, store, tests, mobile, navigation
|
||||
// @PURPOSE: Unit tests for sidebar store
|
||||
// @LAYER: Domain (Tests)
|
||||
// @INVARIANT: Sidebar store transitions must be deterministic across desktop/mobile toggles.
|
||||
|
||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||
import { get } from 'svelte/store';
|
||||
@@ -24,6 +26,7 @@ describe('SidebarStore', () => {
|
||||
});
|
||||
|
||||
// [DEF:test_sidebar_initial_state:Function]
|
||||
// @PURPOSE: Verify initial sidebar store values when no persisted state is available.
|
||||
// @TEST: Store initializes with default values
|
||||
// @PRE: No localStorage state
|
||||
// @POST: Default state is { isExpanded: true, activeCategory: 'dashboards', activeItem: '/dashboards', isMobileOpen: false }
|
||||
@@ -40,6 +43,7 @@ describe('SidebarStore', () => {
|
||||
// [/DEF:test_sidebar_initial_state:Function]
|
||||
|
||||
// [DEF:test_toggleSidebar:Function]
|
||||
// @PURPOSE: Verify desktop sidebar expansion toggles deterministically.
|
||||
// @TEST: toggleSidebar toggles isExpanded state
|
||||
// @PRE: Store is initialized
|
||||
// @POST: isExpanded is toggled from previous value
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
// [DEF:frontend.src.lib.stores.__tests__.test_taskDrawer:Module]
|
||||
// @TIER: CRITICAL
|
||||
// @SEMANTICS: task-drawer, store, mapping, tests
|
||||
// @PURPOSE: Unit tests for task drawer store
|
||||
// @LAYER: UI
|
||||
// @RELATION: VERIFIES -> frontend.src.lib.stores.taskDrawer
|
||||
// @INVARIANT: Store state transitions remain deterministic for open/close and task-status mapping.
|
||||
|
||||
import { describe, it, expect, beforeEach, vi } from 'vitest';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user