chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-05 00:35:18 +00:00
parent 6a5e329427
commit f14784d531
+2 -6
View File
@@ -289,9 +289,7 @@ describe("Vcs diff", () => {
}) })
}) })
test( test("diff('git') keeps carriage returns inside patch hunks", async () => {
"diff('git') keeps carriage returns inside patch hunks",
async () => {
await using tmp = await tmpdir({ git: true }) await using tmp = await tmpdir({ git: true })
await fs.writeFile(path.join(tmp.path, "file.txt"), "keep\nsame\rdiff --git inside\ndelete\n", "utf-8") await fs.writeFile(path.join(tmp.path, "file.txt"), "keep\nsame\rdiff --git inside\ndelete\n", "utf-8")
await $`git add .`.cwd(tmp.path).quiet() await $`git add .`.cwd(tmp.path).quiet()
@@ -311,9 +309,7 @@ describe("Vcs diff", () => {
expect(file?.patch).toContain("-delete") expect(file?.patch).toContain("-delete")
expect(() => parsePatch(file?.patch ?? "")).not.toThrow() expect(() => parsePatch(file?.patch ?? "")).not.toThrow()
}) })
}, }, 20_000)
20_000,
)
test("diff('branch') returns changes against default branch", async () => { test("diff('branch') returns changes against default branch", async () => {
await using tmp = await tmpdir({ git: true }) await using tmp = await tmpdir({ git: true })