test: adapt unit tests to HealthChat fork customizations

This commit is contained in:
2026-06-06 15:14:12 +02:00
parent 2685821bdc
commit d72b973d01
9 changed files with 36 additions and 58 deletions
@@ -10,9 +10,17 @@ import RequiresSettingsController from "../../../../src/settings/controllers/Req
import { SettingLevel } from "../../../../src/settings/SettingLevel";
import SettingsStore from "../../../../src/settings/SettingsStore";
import MatrixClientBackedController from "../../../../src/settings/controllers/MatrixClientBackedController";
import { Layout } from "../../../../src/settings/enums/Layout";
import { getMockClientWithEventEmitter, mockClientMethodsServer } from "../../../test-utils";
describe("RequiresSettingsController", () => {
beforeEach(async () => {
// HealthChat changed the default "layout" to Bubble. These tests use "useCompactLayout" as a
// sample boolean setting, but its IncompatibleController forces it to false unless layout is
// Group, so pin the layout to Group to keep useCompactLayout effective.
await SettingsStore.setValue("layout", null, SettingLevel.DEVICE, Layout.Group);
});
afterEach(() => {
SettingsStore.reset();
});