Skip to content

Commit 80a6ddc

Browse files
committed
Fix test failure by resetting the messaging store
1 parent 20fc397 commit 80a6ddc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/unit-tests/components/views/elements/AppTile-test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ describe("AppTile", () => {
117117
await RightPanelStore.instance.onReady();
118118
});
119119

120-
beforeEach(() => {
120+
beforeEach(async () => {
121121
sdkContext = new SdkContextClass();
122122
jest.spyOn(SettingsStore, "getValue").mockRestore();
123+
// @ts-ignore
124+
await WidgetMessagingStore.instance.onReady();
123125
});
124126

125127
it("destroys non-persisted right panel widget on room change", async () => {

0 commit comments

Comments
 (0)