forked from farhoodlabs/paperclip
test: align task-completed telemetry assertion with agent role
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -82,10 +82,11 @@ describe("issue telemetry routes", () => {
|
|||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("emits task-completed telemetry with the agent adapter type", async () => {
|
it("emits task-completed telemetry with the agent role", async () => {
|
||||||
mockAgentService.getById.mockResolvedValue({
|
mockAgentService.getById.mockResolvedValue({
|
||||||
id: "agent-1",
|
id: "agent-1",
|
||||||
companyId: "company-1",
|
companyId: "company-1",
|
||||||
|
role: "engineer",
|
||||||
adapterType: "codex_local",
|
adapterType: "codex_local",
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -100,7 +101,7 @@ describe("issue telemetry routes", () => {
|
|||||||
|
|
||||||
expect(res.status).toBe(200);
|
expect(res.status).toBe(200);
|
||||||
expect(mockTrackAgentTaskCompleted).toHaveBeenCalledWith(expect.anything(), {
|
expect(mockTrackAgentTaskCompleted).toHaveBeenCalledWith(expect.anything(), {
|
||||||
agentRole: "codex_local",
|
agentRole: "engineer",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user