| ... | ... | @@ -4,7 +4,6 @@ import { describe, expect, it } from "vite-plus/test"; |
| 4 | 4 | import type { EnvironmentProject } from "@t3tools/client-runtime/state/shell"; |
| 5 | 5 | import type { HomeProjectScope } from "../home/homeThreadList"; |
| 6 | 6 | import { |
| 7 | | getOnlySelectableProject, |
| 8 | 7 | getProjectScopeSelectionTarget, |
| 9 | 8 | resolveDraftProjectSelection, |
| 10 | 9 | } from "./new-task-project-selection"; |
| ... | ... | @@ -36,18 +35,6 @@ function makeScope(projects: ReadonlyArray<EnvironmentProject>): HomeProjectScop |
| 36 | 35 | }; |
| 37 | 36 | } |
| 38 | 37 | |
| 39 | | describe("getOnlySelectableProject", () => { |
| 40 | | it("auto-selects when there is exactly one physical project", () => { |
| 41 | | const project = makeProject("t3code"); |
| 42 | | expect(getOnlySelectableProject([makeScope([project])])).toBe(project); |
| 43 | | }); |
| 44 | | |
| 45 | | it("selects the representative when one logical project has multiple workspaces", () => { |
| 46 | | const projects = [makeProject("t3code"), makeProject("t3code-2"), makeProject("t3code-3")]; |
| 47 | | expect(getOnlySelectableProject([makeScope(projects)])).toBe(projects[0]); |
| 48 | | }); |
| 49 | | }); |
| 50 | | |
| 51 | 38 | describe("getProjectScopeSelectionTarget", () => { |
| 52 | 39 | it("keeps the current environment when it hosts the selected logical project", () => { |
| 53 | 40 | const projects = [makeProject("t3code-mac", "mac"), makeProject("t3code-server", "server")]; |