We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 644be31 commit 043d812Copy full SHA for 043d812
1 file changed
test/unit-tests/components/views/rooms/RoomHeader/RoomHeader-test.tsx
@@ -96,9 +96,9 @@ describe("RoomHeader", () => {
96
setCardSpy = jest.spyOn(RightPanelStore.instance, "setCard");
97
jest.spyOn(ShieldUtils, "shieldStatusForRoom").mockResolvedValue(ShieldUtils.E2EStatus.Normal);
98
99
- // Mock CallStore.instance.getCall to return a Call object with stable participants
100
- // This prevents React dependency errors without disrupting hook execution order
101
- jest.spyOn(CallStore.instance, "getCall").mockReturnValue(createMockCall());
+ // Mock CallStore.instance.getCall to return null by default
+ // Individual tests can override this when they need a specific Call object
+ jest.spyOn(CallStore.instance, "getCall").mockReturnValue(null);
102
});
103
104
afterEach(() => {
0 commit comments