feat(voice): add session archive control
This commit is contained in:
parent
62c47f467f
commit
87786c5e88
33 changed files with 4827 additions and 3 deletions
|
|
@ -676,4 +676,17 @@ describe("SessionV2.create", () => {
|
|||
expect(events.filter((event) => event.type === "session.archived")).toHaveLength(1)
|
||||
}),
|
||||
)
|
||||
|
||||
it.effect("rejects archiving a missing Session", () =>
|
||||
Effect.gen(function* () {
|
||||
const session = yield* SessionV2.Service
|
||||
|
||||
expect(
|
||||
yield* session.archive(SessionV2.ID.make("ses_missing_archive")).pipe(
|
||||
Effect.flip,
|
||||
Effect.map((error) => error._tag),
|
||||
),
|
||||
).toBe("Session.NotFoundError")
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue