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:
@@ -9,7 +9,10 @@ async function bench(declare = true) {
|
||||
const ctx = new Context()
|
||||
await ctx.plugin(SlotsService).await()
|
||||
const layout = { toggleSidebar: vi.fn() }
|
||||
const workspaces = { connectWorkspace: vi.fn(async () => 'blank-1' as never) }
|
||||
const workspaces = {
|
||||
connectWorkspace: vi.fn(async () => 'blank-1' as never),
|
||||
list: { getSnapshot: () => ({ recentWorkspaceId: undefined }) },
|
||||
}
|
||||
const sessions = { open: vi.fn(), clear: vi.fn() }
|
||||
ctx.provide('layout', layout)
|
||||
ctx.provide('sessions', sessions as never)
|
||||
|
||||
Reference in New Issue
Block a user