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; }