Skip to content

Commit cc84606

Browse files
committed
test: cover sessions table rows
1 parent fd82a8c commit cc84606

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/commands/sessions.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ describe("sessionsCommand", () => {
4848
expect(logs.some((line) => line.includes("Tokens (ctx %"))).toBe(true);
4949

5050
const row = logs.find((line) => line.includes("+15555550123")) ?? "";
51-
expect(row).toContain("2.0k/32k (6%)");
52-
expect(row).toContain("45m ago");
53-
expect(row).toContain("pi:opus");
51+
expect(row).toBe(
52+
"direct +15555550123 45m ago pi:opus OpenAI Codex 2.0k/32k (6%) id:abc123",
53+
);
5454
});
5555

5656
it("renders the agent runtime in the tabular view", async () => {
@@ -138,9 +138,9 @@ describe("sessionsCommand", () => {
138138
fs.rmSync(store);
139139

140140
const row = logs.find((line) => line.includes("quietchat:group:demo")) ?? "";
141-
expect(row).toContain("unknown/32k (?%)");
142-
expect(row).toContain("think:high");
143-
expect(row).toContain("5m ago");
141+
expect(row).toBe(
142+
"group quietchat:group:demo 5m ago pi:opus OpenAI Codex unknown/32k (?%) think:high id:xyz",
143+
);
144144
});
145145

146146
it("exports freshness metadata in JSON output", async () => {

0 commit comments

Comments
 (0)