Add getCanonicalAlias to mock

pull/21833/head
Simon Merrick 2020-12-02 13:28:35 +13:00
parent cf8c98e076
commit 6670c727a4
1 changed files with 1 additions and 0 deletions

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: {