This seems to be causing a lot of weirdness, presumably because there's another missing thing like in #135, but I don't know what it might be and it feels like it might take a while to find. Backing these changes out to fix develop while we sort it out. Fixes https://github.com/element-hq/element-web/issues/28179
This commit is contained in:
parent
4e5cf1b720
commit
3a59556749
30 changed files with 78 additions and 88 deletions
|
@ -40,7 +40,7 @@ describe("OwnProfileStore", () => {
|
|||
displayname: "Display Name",
|
||||
avatar_url: "mxc://example.com/abc123",
|
||||
});
|
||||
await ownProfileStore.useUnitTestClient(client);
|
||||
await ownProfileStore.start();
|
||||
|
||||
expect(onUpdate).toHaveBeenCalled();
|
||||
expect(ownProfileStore.displayName).toBe("Display Name");
|
||||
|
@ -54,7 +54,7 @@ describe("OwnProfileStore", () => {
|
|||
errcode: "M_NOT_FOUND",
|
||||
}),
|
||||
);
|
||||
await ownProfileStore.useUnitTestClient(client);
|
||||
await ownProfileStore.start();
|
||||
|
||||
expect(onUpdate).toHaveBeenCalled();
|
||||
expect(ownProfileStore.displayName).toBe(client.getSafeUserId());
|
||||
|
@ -69,7 +69,7 @@ describe("OwnProfileStore", () => {
|
|||
}),
|
||||
);
|
||||
try {
|
||||
await ownProfileStore.useUnitTestClient(client);
|
||||
await ownProfileStore.start();
|
||||
} catch (ignore) {}
|
||||
|
||||
expect(onUpdate).not.toHaveBeenCalled();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue