chore: rewrite changelogs + fix stale tests
This commit is contained in:
@@ -36,6 +36,7 @@ type FakeEditor = {
|
||||
setText(text: string): void;
|
||||
getText(): string;
|
||||
addToHistory(text: string): void;
|
||||
clearDraft(historyText?: string): void;
|
||||
setActionKeys(action: string, keys: string[]): void;
|
||||
setCustomKeyHandler(key: string, handler: () => void): void;
|
||||
clearCustomKeyHandlers(): void;
|
||||
@@ -61,6 +62,12 @@ function createContext(sessionOverride?: InteractiveModeContext["session"]) {
|
||||
return editorText;
|
||||
},
|
||||
addToHistory,
|
||||
clearDraft(historyText?: string) {
|
||||
if (historyText !== undefined) addToHistory(historyText);
|
||||
editorText = "";
|
||||
this.pendingImages = [];
|
||||
this.pendingImageLinks = [];
|
||||
},
|
||||
setActionKeys: vi.fn(),
|
||||
setCustomKeyHandler: vi.fn(),
|
||||
clearCustomKeyHandlers: vi.fn(),
|
||||
|
||||
Reference in New Issue
Block a user