Fix tests

This commit is contained in:
Robin
2026-08-03 10:32:52 +02:00
parent 507a6f29a5
commit 11a6fa9b45
2 changed files with 9 additions and 0 deletions

View File

@@ -439,6 +439,12 @@ export function mockConfig(
const spy = vi.spyOn(Config, "get").mockReturnValue({
...DEFAULT_CONFIG,
...config,
default_server_config: {
["m.homeserver"]: {
base_url: "http://localhost:8008",
server_name: "localhost",
},
},
});
// simulate loading the config
vi.spyOn(Config, "init").mockResolvedValue(void 0);