Skip to content

The open-source app everyone uses to manage agents at work

663 B
Raw Blame
import { describe, expect, it } from "vitest";
import { buildRoutineProjectOptions } from "./RoutineDetail";

describe("RoutineDetail project selector options", () => {
  it("excludes archived projects from the editor selector", () => {
    expect(buildRoutineProjectOptions([
      { id: "active-project", name: "Active Project", description: "Visible", archivedAt: null },
      {
        id: "archived-project",
        name: "Archived Project",
        description: "Hidden",
        archivedAt: new Date("2026-04-02T00:00:00.000Z"),
      },
    ])).toEqual([
      { id: "active-project", label: "Active Project", searchText: "Visible" },
    ]);
  });
});