From 84273aebdb9ee07cac5f3443bca3592df7920edf Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 05:58:35 +0100 Subject: [PATCH] test: tighten approval handler runtime assertion --- src/infra/approval-handler-runtime.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/infra/approval-handler-runtime.test.ts b/src/infra/approval-handler-runtime.test.ts index f38b5f1682e..0a4ee0e74b3 100644 --- a/src/infra/approval-handler-runtime.test.ts +++ b/src/infra/approval-handler-runtime.test.ts @@ -89,10 +89,10 @@ type ApprovalHandlerRuntime = NonNullable>, ): ApprovalHandlerRuntime { - expect(runtime).toEqual(expect.objectContaining({ handleRequested: expect.any(Function) })); if (runtime === null) { throw new Error("Expected approval handler runtime"); } + expect(typeof runtime.handleRequested).toBe("function"); return runtime; }