Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

timelineMinimapItems.test.ts

16 lines559 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { resolveTimelineMinimapPreview } from "./timelineMinimapItems";
4​
5describe("resolveTimelineMinimapPreview", () => {
6 it("previews a thread autolink as prose, not its URL", () => {
7 const preview = resolveTimelineMinimapPreview({
8 id: "turn-1",
9 rowIndex: 0,
10 userText: null,
11 assistantText:
12 "Started <t3-thread://v2/env-1/thread-1> and [Fix CI](t3-thread://v2/env-1/t2).",
13 });
14 expect(preview?.assistantText).toBe("Started a thread and Fix CI.");
15 });
16});