opencode-agent[bot] 2 месяцев назад
Родитель
Сommit
fff36b70bc
1 измененных файлов с 10 добавлено и 14 удалено
  1. 10 14
      packages/opencode/test/tool/edit.test.ts

+ 10 - 14
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)
       }),