Fix stray argument in incidents test (broken in c964a00, main didn't typecheck)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d1c555a038
commit
8073a27f9d
@ -503,8 +503,7 @@ describe("MCP для PM", () => {
|
|||||||
await bugsink.capture(c.api, { ...AMOUNT, value: "via mcp" });
|
await bugsink.capture(c.api, { ...AMOUNT, value: "via mcp" });
|
||||||
const i = await waitIncident(c, "TypeError: via mcp", (x) => x.status === "pending");
|
const i = await waitIncident(c, "TypeError: via mcp", (x) => x.status === "pending");
|
||||||
assert.match(await call("list_incidents", { project: c.key, status: "pending" }), new RegExp(`#${i.id} \\[pending\\] TypeError: via mcp`));
|
assert.match(await call("list_incidents", { project: c.key, status: "pending" }), new RegExp(`#${i.id} \\[pending\\] TypeError: via mcp`));
|
||||||
assert.match(await call("decide_incident",
|
assert.match(await call("decide_incident", { id: i.id, action: "backlog" }), /created in the backlog/);
|
||||||
"deploy", { id: i.id, action: "backlog" }), /created in the backlog/);
|
|
||||||
assert.match(await call("resolve_incident", { id: i.id }), /Incident #\d+ resolved/);
|
assert.match(await call("resolve_incident", { id: i.id }), /Incident #\d+ resolved/);
|
||||||
await waitFor("ask message closed", async () => pmMessages("via mcp").some((m) => m.text.includes("Решено (mock-pm): в бэклог")));
|
await waitFor("ask message closed", async () => pmMessages("via mcp").some((m) => m.text.includes("Решено (mock-pm): в бэклог")));
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user