mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-13 21:16:52 +00:00
fix(settings): harden audited state synchronization
This commit is contained in:
@@ -37,6 +37,19 @@ describe('useSettingsStore global speed limit persistence', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('useSettingsStore dock badge synchronization', () => {
|
||||
it('increments the badge sync version for every toggle without issuing out-of-band clears', () => {
|
||||
vi.clearAllMocks();
|
||||
const initialVersion = useSettingsStore.getState().dockBadgeSyncVersion;
|
||||
|
||||
useSettingsStore.getState().setShowDockBadge(false);
|
||||
useSettingsStore.getState().setShowDockBadge(true);
|
||||
|
||||
expect(useSettingsStore.getState().dockBadgeSyncVersion).toBe(initialVersion + 2);
|
||||
expect(ipc.invokeCommand).not.toHaveBeenCalledWith('update_dock_badge', { count: 0 });
|
||||
});
|
||||
});
|
||||
|
||||
describe('useSettingsStore credential-store startup flow', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user