test: adapt suites to the provider-hosted conversation shell
Test-side catch-up with the session-maybe conversation architecture: the provide channel's descriptor shape and maybeProvideInfo in fakes, the shared chat-store handle asserted on conversation.session (the session-maybe shell carries no store), startSession fakes exposing the workspace list snapshot, strict session slots declining (not throwing) without a session, AppFrame's removed empty seat and loading gate, and the hero draft asserted on the machine (the chat-store mirror binds with ConversationSession). Plus three lint fixes (max-len split, boolean-compare, arrow-parens/unbound-method).
This commit is contained in:
@@ -19,7 +19,10 @@ async function bench() {
|
||||
const insertSessionBefore = vi.fn(async () => ({}))
|
||||
const open = vi.fn()
|
||||
const clear = vi.fn()
|
||||
ctx.provide('workspaces', { create, connectWorkspace, rename, insertSessionBefore } as never)
|
||||
ctx.provide('workspaces', {
|
||||
create, connectWorkspace, rename, insertSessionBefore,
|
||||
list: { getSnapshot: () => ({ recentWorkspaceId: undefined }) },
|
||||
} as never)
|
||||
ctx.provide('sessions', { open, clear } as never)
|
||||
return { ctx, slots: ctx.get('slots') as SlotsService, create, connectWorkspace, rename, insertSessionBefore, open, clear }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user