chore: phase 2 and 3 refactors
This commit is contained in:
14
tests/renderer/navigation/sidebarUiPersistence.test.ts
Normal file
14
tests/renderer/navigation/sidebarUiPersistence.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getPersistedSidebarSection, setPersistedSidebarSection } from '../../../src/renderer/navigation/sidebarUiPersistence';
|
||||
|
||||
describe('sidebarUiPersistence', () => {
|
||||
it('persists and reads section ids by sidebar key', () => {
|
||||
setPersistedSidebarSection('settings', 'project');
|
||||
|
||||
expect(getPersistedSidebarSection('settings')).toBe('project');
|
||||
});
|
||||
|
||||
it('returns null for missing persisted section', () => {
|
||||
expect(getPersistedSidebarSection('tags')).toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user