mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 23:34:31 +00:00
tui: keep trimming for normal submits; only raw ! triggers bash
This commit is contained in:
committed by
Peter Steinberger
parent
5fd699d0bf
commit
110b5dafee
@@ -22,7 +22,7 @@ describe("createEditorSubmitHandler", () => {
|
||||
expect(editor.addToHistory).toHaveBeenCalledWith("hello world");
|
||||
});
|
||||
|
||||
it("does not trim input before adding to history", () => {
|
||||
it("trims input before adding to history", () => {
|
||||
const editor = {
|
||||
setText: vi.fn(),
|
||||
addToHistory: vi.fn(),
|
||||
@@ -37,7 +37,7 @@ describe("createEditorSubmitHandler", () => {
|
||||
|
||||
handler(" hi ");
|
||||
|
||||
expect(editor.addToHistory).toHaveBeenCalledWith(" hi ");
|
||||
expect(editor.addToHistory).toHaveBeenCalledWith("hi");
|
||||
});
|
||||
|
||||
it("does not add empty-string submissions to history", () => {
|
||||
|
||||
Reference in New Issue
Block a user