Browse Source

test(web): narrow the stale-pull assertion to the root catalog's calls

Tianyi Cui 2 months ago
parent
commit
d004c694f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/client/runtime/tests/manager.spec.ts

+ 1 - 1
packages/client/runtime/tests/manager.spec.ts

@@ -620,7 +620,7 @@ describe('subagent catalogs', () => {
     await trailing.promise
 
     const rootCalls = api.callsOf('subagent.list')
-      .filter((call: { parentSessionId: SessionId }) => call.parentSessionId === root)
+      .filter(call => (call as { parentSessionId: SessionId }).parentSessionId === root)
     expect(rootCalls).toHaveLength(3)
     expect(manager.getListSnapshot().subagentsByParent[root]?.parentAvailable).toBe(false)
     expect(manager.get(S2).getSnapshot().subagent).toMatchObject({ parentAvailable: false })