diff --git a/test/stores/room-list/SlidingRoomListStore-test.ts b/test/stores/room-list/SlidingRoomListStore-test.ts index 868a54ba78..64e7bfaa97 100644 --- a/test/stores/room-list/SlidingRoomListStore-test.ts +++ b/test/stores/room-list/SlidingRoomListStore-test.ts @@ -324,7 +324,7 @@ describe("SlidingRoomListStore", () => { joinedCount: joinCount, }; }); - let p = untilEmission(store, LISTS_UPDATE_EVENT); + const p = untilEmission(store, LISTS_UPDATE_EVENT); context.slidingSyncManager.slidingSync.emit(SlidingSyncEvent.List, tagId, joinCount, roomIndexToRoomId); await p; expect(store.orderedLists[tagId]).toEqual([roomA, roomC]);