Add getCanonicalAlias to mock
This commit is contained in:
parent
cf8c98e076
commit
6670c727a4
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ function mockRoom(roomId, members, serverACL) {
|
|||
|
||||
return {
|
||||
roomId,
|
||||
getCanonicalAlias: () => roomId,
|
||||
getJoinedMembers: () => members,
|
||||
getMember: (userId) => members.find(m => m.userId === userId),
|
||||
currentState: {
|
||||
|
|
Loading…
Reference in a new issue