mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
mock new settings in tests
This commit is contained in:
parent
a75fb98fbc
commit
9e20e5dfc4
1 changed files with 9 additions and 2 deletions
|
@ -123,8 +123,15 @@ describe("SpaceStore", () => {
|
|||
jest.runAllTimers();
|
||||
client.getVisibleRooms.mockReturnValue(rooms = []);
|
||||
getValue.mockImplementation(settingName => {
|
||||
if (settingName === "feature_spaces") {
|
||||
return true;
|
||||
switch (settingName) {
|
||||
case "feature_spaces":
|
||||
return true;
|
||||
case "feature_spaces.all_rooms":
|
||||
return true;
|
||||
case "feature_spaces.space_member_dms":
|
||||
return true;
|
||||
case "feature_spaces.space_dm_badges":
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue