test(workspaces): preserve cleanup scan modes

This commit is contained in:
Brennan Benson
2026-08-10 18:27:41 -07:00
parent 97356c9e47
commit 87d7fc764c
@@ -552,7 +552,7 @@ describe('workspace cleanup scan progress', () => {
expect(store.getState().workspaceCleanupScan).toMatchObject(secondResult)
})
it('does not join legacy and full-workspace broad scans', async () => {
it('does not join suggestion-only and full-workspace broad scans', async () => {
const legacyPending = deferred<WorkspaceCleanupScanResult>()
const fullPending = deferred<WorkspaceCleanupScanResult>()
const scan = vi.fn((args?: { includeAllWorkspaces?: boolean }) =>
@@ -561,7 +561,7 @@ describe('workspace cleanup scan progress', () => {
installWorkspaceCleanupApi(scan)
const store = createCleanupTestStore()
const legacy = store.getState().scanWorkspaceCleanup()
const legacy = store.getState().scanWorkspaceCleanup({ includeAllWorkspaces: false })
const full = store.getState().scanWorkspaceCleanup({ includeAllWorkspaces: true })
expect(scan).toHaveBeenCalledTimes(2)