mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 10:40:44 +00:00
test: clarify exec approval broadcast assertion
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user