1import { describe, expect, it } from "vite-plus/test";
2
3import { shouldRecedeThreadRow } from "./thread-row-emphasis";
4
5describe("shouldRecedeThreadRow", () => {
6 it("recedes background work", () => {
7 expect(shouldRecedeThreadRow({ status: "working", selected: false })).toBe(true);
8 expect(shouldRecedeThreadRow({ status: "waiting", selected: false })).toBe(true);
9 });
10
11 it("keeps rows that need a human at full strength", () => {
12 for (const status of ["approval", "input", "failed", "limited", "ready"] as const) {
13 expect(shouldRecedeThreadRow({ status, selected: false })).toBe(false);
14 }
15 });
16
17 it("never fades the selected row", () => {
18 expect(shouldRecedeThreadRow({ status: "working", selected: true })).toBe(false);
19 });
20});