mirror of
https://github.com/openai/codex.git
synced 2026-05-03 21:01:55 +03:00
lint
This commit is contained in:
@@ -13,12 +13,16 @@ vi.mock("../src/utils/input-utils.js", () => ({
|
||||
}));
|
||||
vi.mock("../../approvals.js", () => ({ isSafeCommand: () => null }));
|
||||
vi.mock("../src/format-command.js", () => ({
|
||||
formatCommandForDisplay: (c) => c.join(" "),
|
||||
formatCommandForDisplay: (c: Array<string>): string => c.join(" "),
|
||||
}));
|
||||
|
||||
import TerminalChatInput from "../src/components/chat/terminal-chat-input.js";
|
||||
|
||||
async function type(stdin, text, flush) {
|
||||
async function type(
|
||||
stdin: NodeJS.WritableStream & { write(str: string): void },
|
||||
text: string,
|
||||
flush: () => Promise<void>,
|
||||
): Promise<void> {
|
||||
stdin.write(text);
|
||||
await flush();
|
||||
}
|
||||
@@ -67,7 +71,6 @@ describe("Backspace deletes attached image", () => {
|
||||
await flush();
|
||||
|
||||
await type(stdin, "@", flush);
|
||||
console.log('AFTER @', lastFrameStripped());
|
||||
await type(stdin, "\r", flush);
|
||||
const frame1 = lastFrameStripped();
|
||||
expect(frame1.match(/bar\.png/g)?.length ?? 0).toBe(1);
|
||||
|
||||
Reference in New Issue
Block a user