From fff36b70bc12cb7c34a2d692aec96aa3ccc38cd8 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Fri, 5 Jun 2026 14:39:44 +0000 Subject: [PATCH] chore: generate --- packages/opencode/test/tool/edit.test.ts | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/packages/opencode/test/tool/edit.test.ts b/packages/opencode/test/tool/edit.test.ts index 10c871b71..12db53551 100644 --- a/packages/opencode/test/tool/edit.test.ts +++ b/packages/opencode/test/tool/edit.test.ts @@ -227,13 +227,11 @@ describe("tool.edit", () => { yield* put(filepath, original) expect( - ( - yield* fail({ - filePath: filepath, - oldString: ["function configure() {", " const enabled = true", "}"].join("\n"), - newString: ["function configure() {", " const enabled = false", "}"].join("\n"), - }) - ).message, + (yield* fail({ + filePath: filepath, + oldString: ["function configure() {", " const enabled = true", "}"].join("\n"), + newString: ["function configure() {", " const enabled = false", "}"].join("\n"), + })).message, ).toContain("Could not find oldString") expect(yield* load(filepath)).toBe(original) }), @@ -247,13 +245,11 @@ describe("tool.edit", () => { yield* put(filepath, original) expect( - ( - yield* fail({ - filePath: filepath, - oldString: ["function configure() {", " const enabled = true", "}"].join("\n"), - newString: ["function configure() {", " const enabled = false", "}"].join("\n"), - }) - ).message, + (yield* fail({ + filePath: filepath, + oldString: ["function configure() {", " const enabled = true", "}"].join("\n"), + newString: ["function configure() {", " const enabled = false", "}"].join("\n"), + })).message, ).toContain("Could not find oldString") expect(yield* load(filepath)).toBe(original) }),