diff --git a/src/main/plugins/workers/host-api/plugin-host-workspace-rename.test.ts b/src/main/plugins/workers/host-api/plugin-host-workspace-rename.test.ts index 0bac502a354..4cc836089c9 100644 --- a/src/main/plugins/workers/host-api/plugin-host-workspace-rename.test.ts +++ b/src/main/plugins/workers/host-api/plugin-host-workspace-rename.test.ts @@ -54,13 +54,6 @@ describe('workspace.rename', () => { ) }) - it('fails when no folder workspace has the id', async () => { - const rpc = vi.fn().mockResolvedValue({ folderWorkspace: null }) - expect( - await call('workspace.rename', { workspaceId: 'folder:gone', name: 'Notes' }, rpc) - ).toMatchObject({ ok: false, code: 'action_failed' }) - }) - it('refuses blank, multi-line, bidi or invisible names and plugins without workspace:write', async () => { const rpc = vi.fn() const outcomes = await Promise.all( @@ -84,39 +77,3 @@ describe('workspace.rename', () => { expect(rpc).not.toHaveBeenCalled() }) }) - -describe('workspace.list project names', () => { - it("names each worktree's project and leaves project folders without one", async () => { - const rpc = vi.fn(async (method: string) => { - if (method === 'worktree.list') { - return { - worktrees: [ - { - id: 'w1', - repoId: 'r1', - displayName: 'main', - path: '/src/app', - branch: 'refs/heads/main' - } - ] - } - } - if (method === 'repo.list') { - return { repos: [{ id: 'r1', displayName: 'App' }] } - } - return { - folderWorkspaces: [{ id: 'f1', name: 'Notes', folderPath: '/notes' }] - } - }) - const outcome = await call('workspace.list', {}, rpc, ['workspace:read']) - expect(outcome).toMatchObject({ - ok: true, - value: { - workspaces: [ - { id: 'w1', name: 'main', project: 'App', branch: 'main' }, - { id: 'folder:f1', name: 'Notes', project: null } - ] - } - }) - }) -})