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

fix tests

This commit is contained in:
Bruno Windels
2018-08-22 16:00:03 +02:00
parent a54629276f
commit db7dd8e9e8

View File

@ -256,6 +256,7 @@ export function mkStubRoom(roomId = null) {
getAccountData: () => null, getAccountData: () => null,
hasMembershipState: () => null, hasMembershipState: () => null,
getVersion: () => '1', getVersion: () => '1',
getMyMembership: () => "join",
currentState: { currentState: {
getStateEvents: sinon.stub(), getStateEvents: sinon.stub(),
mayClientSendStateEvent: sinon.stub().returns(true), mayClientSendStateEvent: sinon.stub().returns(true),