fix: linter errors
This commit is contained in:
parent
45e9a944e7
commit
7b82f4fc3d
4 changed files with 6 additions and 7 deletions
|
|
@ -3,7 +3,6 @@
|
|||
*/
|
||||
import { render } from "@testing-library/react";
|
||||
import type { ChatHistoryItem } from "core/index.js";
|
||||
import { Box } from "ink";
|
||||
import React from "react";
|
||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import React, { useMemo, useState } from "react";
|
|||
|
||||
import type { ChatHistoryItem } from "../../../../core/index.js";
|
||||
|
||||
import { TextBuffer } from "./TextBuffer.js";
|
||||
import { defaultBoxStyles } from "./styles.js";
|
||||
import { TextBuffer } from "./TextBuffer.js";
|
||||
|
||||
interface EditMessageSelectorProps {
|
||||
chatHistory: ChatHistoryItem[];
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { Box, Text } from "ink";
|
||||
import React from "react";
|
||||
|
||||
import type { ChatHistoryItem } from "../../../../../core/index.js";
|
||||
import { UpdateServiceState } from "src/services/types.js";
|
||||
|
||||
import type { ChatHistoryItem } from "../../../../../core/index.js";
|
||||
import { ConfigSelector } from "../ConfigSelector.js";
|
||||
import type { NavigationScreen } from "../context/NavigationContext.js";
|
||||
import { DiffViewer } from "../DiffViewer.js";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { ChatHistoryItem } from "core/index.js";
|
||||
import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
import { describe, it, expect, vi } from "vitest";
|
||||
|
||||
/**
|
||||
* Tests for the message edit feature in useChat hook
|
||||
|
|
@ -24,7 +24,7 @@ describe("useChat - Message Edit Feature", () => {
|
|||
describe("handleEditMessage", () => {
|
||||
it("should rewind history to exclude the message being edited", () => {
|
||||
const chatHistory = createMockChatHistory(5); // [user, asst, user, asst, user]
|
||||
let currentHistory = chatHistory;
|
||||
const currentHistory = chatHistory;
|
||||
|
||||
const setChatHistory = vi.fn();
|
||||
const setQueuedMessages = vi.fn();
|
||||
|
|
@ -74,7 +74,7 @@ describe("useChat - Message Edit Feature", () => {
|
|||
|
||||
it("should handle editing the first message", () => {
|
||||
const chatHistory = createMockChatHistory(5);
|
||||
let currentHistory = chatHistory;
|
||||
const currentHistory = chatHistory;
|
||||
|
||||
const updateSessionHistory = vi.fn();
|
||||
const processMessage = vi.fn();
|
||||
|
|
@ -103,7 +103,7 @@ describe("useChat - Message Edit Feature", () => {
|
|||
|
||||
it("should handle editing the last message", () => {
|
||||
const chatHistory = createMockChatHistory(5);
|
||||
let currentHistory = chatHistory;
|
||||
const currentHistory = chatHistory;
|
||||
|
||||
const updateSessionHistory = vi.fn();
|
||||
const processMessage = vi.fn();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue