Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(mobile): assert pending interaction snapshot host

Chris39c8294fd13a
diff --git a/apps/mobile/src/__tests__/BotGroupSpeakerRow.test.tsx b/apps/mobile/src/__tests__/BotGroupSpeakerRow.test.tsx
index 8cfba884d7..2e0a9a1a68 100644
--- a/apps/mobile/src/__tests__/BotGroupSpeakerRow.test.tsx
+++ b/apps/mobile/src/__tests__/BotGroupSpeakerRow.test.tsx
@@ -62,7 +62,7 @@ it('follows the speaking lane while focused and seeds its pending prompts', asyn
await render({});
expect(h.subscribe).toHaveBeenCalledWith(expect.stringMatching(/^bot-group-speaker:s1:focus:/), 'mac', ['session:s1']);
expect(h.invoke).toHaveBeenCalledWith('mac', 'maker:get-pending-interactions', ['s1']);
- expect(h.setPending).toHaveBeenCalledWith('s1', [{ request: { requestId: 'r1' } }]);
+ expect(h.setPending).toHaveBeenCalledWith('s1', [{ request: { requestId: 'r1' } }], { deviceId: 'mac' });
// No live phase yet: a reply reads 「正在思考…」.
expect(node.textContent).toContain('copy:thinking');
await act(async () => root.unmount());