mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-09 06:15:21 +02:00
19 lines
663 B
TypeScript
19 lines
663 B
TypeScript
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" },
|
|
]);
|
|
});
|
|
});
|