mirror of https://github.com/vector-im/riot-web
room stub not having getVersion method broke tests
parent
4c69c8d0f1
commit
1675d3c4ba
|
@ -255,6 +255,7 @@ export function mkStubRoom(roomId = null) {
|
||||||
getUnfilteredTimelineSet: () => null,
|
getUnfilteredTimelineSet: () => null,
|
||||||
getAccountData: () => null,
|
getAccountData: () => null,
|
||||||
hasMembershipState: () => null,
|
hasMembershipState: () => null,
|
||||||
|
getVersion: () => '1',
|
||||||
currentState: {
|
currentState: {
|
||||||
getStateEvents: sinon.stub(),
|
getStateEvents: sinon.stub(),
|
||||||
mayClientSendStateEvent: sinon.stub().returns(true),
|
mayClientSendStateEvent: sinon.stub().returns(true),
|
||||||
|
|
Loading…
Reference in New Issue