chore: generate
This commit is contained in:
@@ -104,11 +104,14 @@ describe("HttpApi Hono bridge", () => {
|
|||||||
await using tmp = await tmpdir({ git: true })
|
await using tmp = await tmpdir({ git: true })
|
||||||
await Bun.write(`${tmp.path}/hello.txt`, "hello")
|
await Bun.write(`${tmp.path}/hello.txt`, "hello")
|
||||||
|
|
||||||
const response = await app({ password: "secret" }).request(fileUrl({ token: Buffer.from("opencode:secret").toString("base64") }), {
|
const response = await app({ password: "secret" }).request(
|
||||||
headers: {
|
fileUrl({ token: Buffer.from("opencode:secret").toString("base64") }),
|
||||||
"x-opencode-directory": tmp.path,
|
{
|
||||||
|
headers: {
|
||||||
|
"x-opencode-directory": tmp.path,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
})
|
)
|
||||||
|
|
||||||
expect(response.status).toBe(200)
|
expect(response.status).toBe(200)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user