Skip to content

The agent that grows with you

test(desktop): trim the archived-view reload coverage to two invariants

teknium105051691c66a
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 0e5710aecd6..c1f1abd6d8d 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()
- })
})