test: tighten matrix logger assertion

This commit is contained in:
Shakker
2026-05-08 17:09:59 +01:00
parent 6575788231
commit a09e68e249

View File

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