refactor(server): simplify router middleware with next() (#21720)
This commit is contained in:
parent
57c40eb7c2
commit
ca5f086759
1 changed files with 767 additions and 467 deletions
|
|
@ -147,7 +147,7 @@ describe("session messages endpoint", () => {
|
|||
|
||||
describe("session.prompt_async error handling", () => {
|
||||
test("prompt_async route has error handler for detached prompt call", async () => {
|
||||
const src = await Bun.file(new URL("../../src/server/routes/session.ts", import.meta.url)).text()
|
||||
const src = await Bun.file(new URL("../../src/server/instance/session.ts", import.meta.url)).text()
|
||||
const start = src.indexOf('"/:sessionID/prompt_async"')
|
||||
const end = src.indexOf('"/:sessionID/command"', start)
|
||||
expect(start).toBeGreaterThan(-1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue