Fix wrongly asserting that PushRule::conditions is non-null (#7973)

This commit is contained in:
Michael Telatynski 2022-03-04 09:39:16 +00:00 committed by GitHub
parent b80ea34805
commit 15cbc6c26c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 91 additions and 19 deletions

View file

@ -102,7 +102,7 @@ export function createTestClient() {
sendStateEvent: jest.fn().mockResolvedValue(),
getSyncState: () => "SYNCING",
generateClientSecret: () => "t35tcl1Ent5ECr3T",
isGuest: () => false,
isGuest: jest.fn().mockReturnValue(false),
isCryptoEnabled: () => false,
getRoomHierarchy: jest.fn().mockReturnValue({
rooms: [],