test: replace console.log with assertion for agent mode verification
This commit is contained in:
@@ -78,7 +78,7 @@ describe("AgentManager", () => {
|
|||||||
expect(content).toContain("hello world");
|
expect(content).toContain("hello world");
|
||||||
|
|
||||||
const agentInfo = manager.listAgents().find((a) => a.id === agentId);
|
const agentInfo = manager.listAgents().find((a) => a.id === agentId);
|
||||||
console.log("Final agent mode:", agentInfo?.currentModeId);
|
expect(agentInfo?.currentModeId).toBe("acceptEdits");
|
||||||
} finally {
|
} finally {
|
||||||
unsubscribe();
|
unsubscribe();
|
||||||
await manager.killAgent(agentId);
|
await manager.killAgent(agentId);
|
||||||
|
|||||||
Reference in New Issue
Block a user