From 4aab6cfe4ed0870ae571a4000b81b5b4e9f34a30 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 18 Sep 2024 23:10:30 -0400 Subject: [PATCH] Leave an open question about whether to move test utils --- src/utils/test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/test.ts b/src/utils/test.ts index b80afded..f06bcd30 100644 --- a/src/utils/test.ts +++ b/src/utils/test.ts @@ -87,6 +87,9 @@ function mockEmitter(): EmitterMock { }; } +// Maybe it'd be good to move this to matrix-js-sdk? Our testing needs are +// rather simple, but if one util to mock a member is good enough for us, maybe +// it's useful for matrix-js-sdk consumers in general. export function mockMember(member: Partial): RoomMember { return { ...mockEmitter(), ...member } as RoomMember; }