From 05051691c66a2faccb52b558600d59daeed13864 Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Tue, 15 Sep 2026 12:06:07 -0700 Subject: [PATCH] test(desktop): trim the archived-view reload coverage to two invariants Keep the two discriminating cases (a sessions.changed tick reloads the archived set while the view is open; a failed refresh retains the last good rows) and drop the closed-view control, which passes on the unfixed base as well. --- .../app/contrib/hooks/use-background-sync.test.tsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx index 0e5710aecd..c1f1abd6d8 100644 --- a/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx +++ b/apps/desktop/src/app/contrib/hooks/use-background-sync.test.tsx @@ -123,15 +123,4 @@ describe('useBackgroundSync profile-scoped session refresh', () => { expect(loadArchivedSessions).toHaveBeenCalledTimes(1) }) - - it('does not reload archived sessions when the Archived view is closed', async () => { - $changeEventsAvailable.set(true) - render('default', 'local', async () => undefined) - - await act(async () => { - $sessionsChangeTick.set(1) - }) - - expect(loadArchivedSessions).not.toHaveBeenCalled() - }) })