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:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user