1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Add getMember mock

This commit is contained in:
Jaiwanth
2021-05-19 15:01:05 +05:30
parent e78206301f
commit 506a798961
2 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ export function mkStubRoom(roomId = null) {
maySendMessage: jest.fn().mockReturnValue(true),
currentState: {
getStateEvents: jest.fn(),
getMember: jest.fn(),
mayClientSendStateEvent: jest.fn().mockReturnValue(true),
maySendStateEvent: jest.fn().mockReturnValue(true),
maySendEvent: jest.fn().mockReturnValue(true),