Add getCanonicalAlias to mock

This commit is contained in:
Simon Merrick 2020-12-02 13:28:35 +13:00
parent cf8c98e076
commit 6670c727a4

View file

@ -34,6 +34,7 @@ function mockRoom(roomId, members, serverACL) {
return {
roomId,
getCanonicalAlias: () => roomId,
getJoinedMembers: () => members,
getMember: (userId) => members.find(m => m.userId === userId),
currentState: {