From a09e68e2495054dfb0f68e25f644eaec26b74113 Mon Sep 17 00:00:00 2001 From: Shakker Date: Fri, 8 May 2026 17:09:59 +0100 Subject: [PATCH] test: tighten matrix logger assertion --- extensions/matrix/src/matrix/sdk.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extensions/matrix/src/matrix/sdk.test.ts b/extensions/matrix/src/matrix/sdk.test.ts index 8026f7ffc82..01e088972a4 100644 --- a/extensions/matrix/src/matrix/sdk.test.ts +++ b/extensions/matrix/src/matrix/sdk.test.ts @@ -1623,9 +1623,12 @@ describe("MatrixClient crypto bootstrapping", () => { debug?: (...args: unknown[]) => void; getChild?: (namespace: string) => unknown; } | null; - expect(logger).not.toBeNull(); - expect(logger?.debug).toBeTypeOf("function"); - expect(logger?.getChild).toBeTypeOf("function"); + expect(logger).toEqual( + expect.objectContaining({ + debug: expect.any(Function), + getChild: expect.any(Function), + }), + ); }); it("passes a custom sync filter to matrix-js-sdk startup", async () => {