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:
Асель 2026-11-13 15:01:00 +05:00
parent d1c555a038
commit 8073a27f9d

View File

@ -503,8 +503,7 @@ describe("MCP для PM", () => {
await bugsink.capture(c.api, { ...AMOUNT, value: "via mcp" });
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("decide_incident",
"deploy", { id: i.id, action: "backlog" }), /created in the backlog/);
assert.match(await call("decide_incident", { id: i.id, action: "backlog" }), /created in the backlog/);
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): в бэклог")));
});