test: replace console.log with assertion for agent mode verification

This commit is contained in:
Mohamed Boudra
2025-10-26 07:44:33 +01:00
parent 0cc9666df0
commit a81a8a86b8

View File

@@ -78,7 +78,7 @@ describe("AgentManager", () => {
expect(content).toContain("hello world");
const agentInfo = manager.listAgents().find((a) => a.id === agentId);
console.log("Final agent mode:", agentInfo?.currentModeId);
expect(agentInfo?.currentModeId).toBe("acceptEdits");
} finally {
unsubscribe();
await manager.killAgent(agentId);