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.
This commit is contained in:
teknium1
2026-09-15 12:06:07 -07:00
committed by Teknium
parent dbda53b8be
commit 05051691c6
@@ -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()
})
})