Skip to content

Commit 45e9a94

Browse files
fix: linter errors
1 parent 8d11969 commit 45e9a94

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

extensions/cli/src/ui/__tests__/TUIChat.editMessage.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe("TUIChat - Message Edit Feature", () => {
130130

131131
// UI should remain stable and edit selector should be closed
132132
expect(frame).toBeDefined();
133-
expect(frame.length).toBeGreaterThan(0);
133+
expect(frame!.length).toBeGreaterThan(0);
134134
expect(frame).not.toContain("No user messages to edit");
135135
},
136136
);
@@ -189,7 +189,7 @@ describe("TUIChat - Edit Feature Edge Cases", () => {
189189

190190
// Should either show "no messages" or handle gracefully
191191
expect(frame).toBeDefined();
192-
expect(frame.length).toBeGreaterThan(0);
192+
expect(frame!.length).toBeGreaterThan(0);
193193
},
194194
);
195195

extensions/cli/src/ui/hooks/useChat.edit.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,14 @@ describe("useChat - Message Edit Feature", () => {
316316
const chatHistory: ChatHistoryItem[] = [
317317
{
318318
message: { role: "user", content: "Original" },
319-
contextItems: [{ name: "file.txt", content: "data" }],
319+
contextItems: [
320+
{
321+
name: "file.txt",
322+
content: "data",
323+
description: "file.txt",
324+
id: { providerTitle: "file", itemId: "file.txt" },
325+
},
326+
],
320327
},
321328
];
322329

0 commit comments

Comments
 (0)