chore: generate
This commit is contained in:
parent
28b03595bf
commit
d01cb7f013
7 changed files with 8 additions and 20 deletions
|
|
@ -421,9 +421,9 @@ describe("session HttpApi", () => {
|
|||
directory: currentDir,
|
||||
})
|
||||
const headers = { "x-opencode-directory": tmp.path }
|
||||
const sessions = (yield* json<Session.Info[]>(yield* request(`${SessionPaths.list}?${query}`, { headers }))).map(
|
||||
(item) => item.id,
|
||||
)
|
||||
const sessions = (yield* json<Session.Info[]>(
|
||||
yield* request(`${SessionPaths.list}?${query}`, { headers }),
|
||||
)).map((item) => item.id)
|
||||
|
||||
expect(sessions).toContain(pathSession.id)
|
||||
expect(sessions).not.toContain(pathlessSession.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue