Use getChildren instead of getSpaceSummary as MSC2946 has moved on

This commit is contained in:
Michael Telatynski 2021-07-29 12:16:59 +01:00
parent ef8d2e8257
commit 6f37e8b223
3 changed files with 42 additions and 35 deletions

View file

@ -86,7 +86,9 @@ export function createTestClient() {
isCryptoEnabled: () => false,
getSpaceSummary: jest.fn().mockReturnValue({
rooms: [],
events: [],
}),
getRoomChildren: jest.fn().mockReturnValue({
rooms: [],
}),
// Used by various internal bits we aren't concerned with (yet)