mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-20 18:23:32 +00:00
chore: generate
This commit is contained in:
parent
236cfcbbc3
commit
fff36b70bc
1 changed files with 10 additions and 14 deletions
|
|
@ -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)
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue