Step 8.5: Isolate RightPanelStore from RoomViewStore
This commit is contained in:
parent
66401c844f
commit
4144d0ba57
7 changed files with 91 additions and 29 deletions
|
@ -32,6 +32,7 @@ import { RightPanelPhases } from "../../../src/stores/right-panel/RightPanelStor
|
|||
import RightPanelStore from "../../../src/stores/right-panel/RightPanelStore";
|
||||
import { UPDATE_EVENT } from "../../../src/stores/AsyncStore";
|
||||
import { WidgetLayoutStore } from "../../../src/stores/widgets/WidgetLayoutStore";
|
||||
import { RoomViewStore } from "../../../src/stores/RoomViewStore";
|
||||
|
||||
describe("RightPanel", () => {
|
||||
it("renders info from only one room during room changes", async () => {
|
||||
|
@ -75,6 +76,7 @@ describe("RightPanel", () => {
|
|||
// @ts-ignore
|
||||
await WidgetLayoutStore.instance.onReady();
|
||||
RightPanelStore.instance.useUnitTestClient(cli);
|
||||
RoomViewStore.instance.useUnitTestClient(cli);
|
||||
// @ts-ignore
|
||||
await RightPanelStore.instance.onReady();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue