Mute broadcast chunk notifications

This commit is contained in:
Michael Weimann 2023-01-03 10:02:28 +01:00
parent 6d6adc8c02
commit cb4e444a60
No known key found for this signature in database
GPG key ID: 53F535A266BB9584
3 changed files with 50 additions and 0 deletions

View file

@ -92,6 +92,7 @@ export const unmockClientPeg = () => jest.spyOn(MatrixClientPeg, "get").mockRest
*/
export const mockClientMethodsUser = (userId = "@alice:domain") => ({
getUserId: jest.fn().mockReturnValue(userId),
getSafeUserId: jest.fn().mockReturnValue(userId),
getUser: jest.fn().mockReturnValue(new User(userId)),
isGuest: jest.fn().mockReturnValue(false),
mxcUrlToHttp: jest.fn().mockReturnValue("mock-mxcUrlToHttp"),