stub getJoinRule

pull/21833/head
Michael Telatynski 2021-07-06 10:44:09 +01:00
parent 0ca4a958f7
commit 9d8acd1af0
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ export function mkStubRoom(roomId = null, name) {
getCanonicalAlias: jest.fn(),
getAltAliases: jest.fn().mockReturnValue([]),
timeline: [],
getJoinRule: jest.fn().mockReturnValue("invite"),
};
}