mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 16:25:50 +00:00
test: clarify abort listener cleanup assertion
This commit is contained in:
parent
0c5f604fd6
commit
fddec6d8cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue