Lie about DMs in tests
This commit is contained in:
parent
044c223899
commit
85af3ebcc0
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ describe('RoomList', () => {
|
||||||
|
|
||||||
DMRoomMap.makeShared();
|
DMRoomMap.makeShared();
|
||||||
|
|
||||||
|
// Lie to the room list store about DMs not existing
|
||||||
|
DMRoomMap.getUserIdForRoomId = () => {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
parentDiv = document.createElement('div');
|
parentDiv = document.createElement('div');
|
||||||
document.body.appendChild(parentDiv);
|
document.body.appendChild(parentDiv);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue