1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-12-01 09:58:03 +03:00

Add stub for getVisibleRooms()

Fixes the tests
This commit is contained in:
David Baker
2018-08-23 12:14:52 +01:00
parent 2816175393
commit cb84feefa9
2 changed files with 2 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ export function createTestClient() {
getPushActionsForEvent: sinon.stub(),
getRoom: sinon.stub().returns(mkStubRoom()),
getRooms: sinon.stub().returns([]),
getVisibleRooms: sinon.stub().returns([]),
getGroups: sinon.stub().returns([]),
loginFlows: sinon.stub(),
on: sinon.stub(),