Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

test(tools): remove an unnecessary quote escape

Afloat05b5d3cf04b5
diff --git a/server/drivers/agents-what-changed-tool.test.ts b/server/drivers/agents-what-changed-tool.test.ts
index d051eb3b06..6396466e79 100644
--- a/server/drivers/agents-what-changed-tool.test.ts
+++ b/server/drivers/agents-what-changed-tool.test.ts
@@ -36,7 +36,7 @@ describe("what_changed inline request size", () => {
});
it("counts JSON escaping and preserves the serialized request", async () => {
- const args = { original_text: '\"\\\nη•ŒπŸ™‚', edited_text: "updated", start: 2 };
+ const args = { original_text: '"\\\nη•ŒπŸ™‚', edited_text: "updated", start: 2 };
const f = context();
expect(await callWhatChangedTool(args, f.context)).toEqual({ text: "comparison" });
expect(f.apiResponse).toHaveBeenCalledWith("/api/internal/what-changed", { method: "POST", body: JSON.stringify(args) });