Skip to content

Commit 37c95cf

Browse files
committed
adjust tests to the new behaviour
1 parent 0cc9047 commit 37c95cf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/unit-tests/stores/SpaceStore-test.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,13 +1402,18 @@ describe("SpaceStore", () => {
14021402
removeListener();
14031403
});
14041404

1405-
it("Favourites and People meta spaces should not be returned when the feature_new_room_list labs flag is enabled", async () => {
1405+
it("Favourites and People meta spaces should be returned even when the feature_new_room_list labs flag is enabled", async () => {
14061406
// Enable the new room list
14071407
await SettingsStore.setValue("feature_new_room_list", null, SettingLevel.DEVICE, true);
14081408

14091409
await run();
1410-
// Favourites and People meta spaces should not be returned
1411-
expect(SpaceStore.instance.enabledMetaSpaces).toStrictEqual([MetaSpace.Home, MetaSpace.Orphans]);
1410+
// Favourites and People meta spaces should be returned
1411+
expect(SpaceStore.instance.enabledMetaSpaces).toStrictEqual([
1412+
MetaSpace.Home,
1413+
MetaSpace.Favourites,
1414+
MetaSpace.People,
1415+
MetaSpace.Orphans,
1416+
]);
14121417
});
14131418

14141419
describe("when feature_dynamic_room_predecessors is not enabled", () => {

0 commit comments

Comments
 (0)