test: clarify exec approval broadcast assertion

This commit is contained in:
Peter Steinberger
2026-05-08 10:18:16 +01:00
parent b16bcda63a
commit 3b626e4e36

View File

@@ -1161,7 +1161,7 @@ describe("exec approval handlers", () => {
expect.objectContaining({ id, decision: "allow-once" }),
undefined,
);
expect(broadcasts.some((entry) => entry.event === "exec.approval.resolved")).toBe(true);
expect(broadcasts.map((entry) => entry.event)).toContain("exec.approval.resolved");
});
it("treats duplicate same-decision exec resolves as idempotent during grace", async () => {