Rename RoomListStore2 class name
We use `RoomListStore` as a singleton, and don't want the ugly `2` at the end of the actual store instance, so here we rename it to something half-decent.
This commit is contained in:
parent
1f9c07861e
commit
209a5d2220
4 changed files with 15 additions and 12 deletions
|
@ -14,7 +14,10 @@ import GroupStore from '../../../../src/stores/GroupStore.js';
|
|||
|
||||
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
|
||||
import {DefaultTagID} from "../../../../src/stores/room-list/models";
|
||||
import RoomListStore, {LISTS_UPDATE_EVENT, RoomListStore2} from "../../../../src/stores/room-list/RoomListStore2";
|
||||
import RoomListStore, {
|
||||
LISTS_UPDATE_EVENT,
|
||||
RoomListStoreClass
|
||||
} from "../../../../src/stores/room-list/RoomListStore2";
|
||||
import RoomListLayoutStore from "../../../../src/stores/room-list/RoomListLayoutStore";
|
||||
|
||||
function generateRoomId() {
|
||||
|
@ -49,7 +52,7 @@ describe('RoomList', () => {
|
|||
let myOtherMember;
|
||||
|
||||
beforeEach(async function(done) {
|
||||
RoomListStore2.TEST_MODE = true;
|
||||
RoomListStoreClass.TEST_MODE = true;
|
||||
|
||||
TestUtils.stubClient();
|
||||
client = MatrixClientPeg.get();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue