fix test using private field (#34618)

* fix test using private field

* review: use readable name
This commit is contained in:
Valere Fedronic
2026-08-08 14:28:29 +00:00
committed by GitHub
parent 9826a664dc
commit a73f8c389b
@@ -48,12 +48,13 @@ describe("FallbackIceServerController", () => {
MatrixClientBackedController.matrixClient = client;
expect(controller.settingDisabled).toBeFalsy();
client["clientWellKnown"] = {
const wellKnown = {
"io.element.voip": {
disable_fallback_ice: true,
},
};
client.emit(ClientEvent.ClientWellKnown, client["clientWellKnown"]);
vi.spyOn(client, "getClientWellKnown").mockResolvedValue(wellKnown);
client.emit(ClientEvent.ClientWellKnown, wellKnown);
expect(controller.settingDisabled).toBeTruthy();
});