test: clarify abort listener cleanup assertion

This commit is contained in:
Peter Steinberger
2026-05-08 11:36:13 +01:00
parent 0c5f604fd6
commit fddec6d8cd

View File

@@ -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 () => {