Skip to content

Commit e983f6d

Browse files
committed
test(workspace): cover persisted restart default
1 parent e8c450b commit e983f6d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

apps/daemon/tests/collab-context-routes.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe('collab context routes', () => {
412412
});
413413
});
414414

415-
it('keeps workspace selection request-local and does not mutate the daemon active pin', async () => {
415+
it('persists the restart default after verifying the request-local selection', async () => {
416416
const setActive = vi.fn(async () => {});
417417
const api = await startContextServer({
418418
activeWorkspace: {
@@ -443,7 +443,8 @@ describe('collab context routes', () => {
443443
workspaceId: 'ws-b',
444444
workspaceMemberId: 'wm-b',
445445
});
446-
expect(setActive).not.toHaveBeenCalled();
446+
expect(setActive).toHaveBeenCalledOnce();
447+
expect(setActive).toHaveBeenCalledWith('ws-b');
447448
});
448449
});
449450

0 commit comments

Comments
 (0)