mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 04:20:43 +00:00
test: clarify abort listener cleanup assertion
This commit is contained in:
@@ -941,7 +941,7 @@ describe("before_tool_call requireApproval handling", () => {
|
||||
});
|
||||
|
||||
expect(result.blocked).toBe(false);
|
||||
expect(removeListenerSpy.mock.calls.some(([type]) => type === "abort")).toBe(true);
|
||||
expect(removeListenerSpy.mock.calls.map(([type]) => type)).toContain("abort");
|
||||
});
|
||||
|
||||
it("calls onResolution with allow-once on approval", async () => {
|
||||
|
||||
Reference in New Issue
Block a user