Skip to content

Commit 0939b7d

Browse files
committed
test: update exisiting tests
1 parent 209c2bf commit 0939b7d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/web/test/viewmodels/room-list/RoomListHeaderViewModel-test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ describe("RoomListHeaderViewModel", () => {
315315
});
316316

317317
it("should call createSection on RoomListStoreV3 when createSection is called", () => {
318-
const createSectionSpy = jest.spyOn(RoomListStoreV3.instance, "createSection").mockResolvedValue();
318+
const createSectionSpy = jest
319+
.spyOn(RoomListStoreV3.instance, "createSection")
320+
.mockResolvedValue("element.io.section.work");
319321
vm = new RoomListHeaderViewModel({ matrixClient, spaceStore: SpaceStore.instance });
320322
vm.createSection();
321323
expect(createSectionSpy).toHaveBeenCalled();

0 commit comments

Comments
 (0)