test(client): update workspace initialization API expectations
This commit is contained in:
1 parent
236ab7acbd
commit
7d3420126e
1 file changed
+12
-1
@@ -26,7 +26,7 @@ describe('Client Cordis inspect catalog', () => {
|
||||
'openWorkspace(workspaceId: WorkspaceId, beforeOpen?: (sessionId: SessionId) => void): Promise<void>',
|
||||
'forkSession(sessionId: SessionId, onCreated?: (childId: SessionId) => void): Promise<SessionId>',
|
||||
'connectWorkspace(workspaceId: WorkspaceId): Promise<SessionId>',
|
||||
'startSession(workspaceId?: WorkspaceId): void',
|
||||
'startSession(workspaceId?: WorkspaceId, options?: StartSessionOptions): void',
|
||||
'archiveSession(sessionId: SessionId, options?: { readonly stopActivity?: boolean }): Promise<void>',
|
||||
'unarchiveSession(sessionId: SessionId): Promise<void>',
|
||||
'pickDirectory(): Promise<string | null>',
|
||||
@@ -40,6 +40,17 @@ describe('Client Cordis inspect catalog', () => {
|
||||
expect(new Set(names).size).toBe(names.length)
|
||||
})
|
||||
|
||||
it('describes initial content and structured references in Workspace navigation', () => {
|
||||
const result = queryServiceApi('uiWorkspace') as {
|
||||
referencedTypes: readonly { name: string; declaration: string }[]
|
||||
}
|
||||
expect(result.referencedTypes).toEqual(expect.arrayContaining([
|
||||
expect.objectContaining({ name: 'StartSessionOptions', declaration: expect.stringContaining('DraftInitializationOptions') }),
|
||||
expect.objectContaining({ name: 'DraftInitializationOptions', declaration: expect.stringContaining('readonly prompt?: DraftInput') }),
|
||||
expect.objectContaining({ name: 'DraftSnapshot', declaration: expect.stringContaining('readonly references: readonly DraftReference[]') }),
|
||||
]))
|
||||
})
|
||||
|
||||
it('includes the current referenced type closure for the Sessions service', () => {
|
||||
const result = queryServiceApi('sessions') as {
|
||||
referencedTypes: readonly { name: string; declaration: string }[]
|
||||
|
||||
Reference in new issue
Block a user