mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 05:04:57 +08:00
Enable test mode
This commit is contained in:
parent
314250a6e4
commit
3826d81358
@ -14,7 +14,7 @@ import GroupStore from '../../../../src/stores/GroupStore.js';
|
|||||||
|
|
||||||
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
|
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
|
||||||
import {DefaultTagID} from "../../../../src/stores/room-list/models";
|
import {DefaultTagID} from "../../../../src/stores/room-list/models";
|
||||||
import RoomListStore, {LISTS_UPDATE_EVENT} from "../../../../src/stores/room-list/RoomListStore2";
|
import RoomListStore, {LISTS_UPDATE_EVENT, RoomListStore2} from "../../../../src/stores/room-list/RoomListStore2";
|
||||||
import RoomListLayoutStore from "../../../../src/stores/room-list/RoomListLayoutStore";
|
import RoomListLayoutStore from "../../../../src/stores/room-list/RoomListLayoutStore";
|
||||||
|
|
||||||
function generateRoomId() {
|
function generateRoomId() {
|
||||||
@ -49,6 +49,8 @@ describe('RoomList', () => {
|
|||||||
let myOtherMember;
|
let myOtherMember;
|
||||||
|
|
||||||
beforeEach(async function(done) {
|
beforeEach(async function(done) {
|
||||||
|
RoomListStore2.TEST_MODE = true;
|
||||||
|
|
||||||
TestUtils.stubClient();
|
TestUtils.stubClient();
|
||||||
client = MatrixClientPeg.get();
|
client = MatrixClientPeg.get();
|
||||||
client.credentials = {userId: myUserId};
|
client.credentials = {userId: myUserId};
|
||||||
|
Loading…
Reference in New Issue
Block a user