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