Update MatrixChat-test to restoreAllMocks
after each test (#11424)
* Update MatrixChat to `restoreAllMocks` after each test This helps keep tests independent. * more MatrixChat fixes
This commit is contained in:
parent
5aefd4652a
commit
4a5b686aaa
2 changed files with 12 additions and 8 deletions
|
@ -100,6 +100,7 @@ export class OwnProfileStore extends AsyncStoreWithClient<IState> {
|
|||
}
|
||||
|
||||
protected async onNotReady(): Promise<void> {
|
||||
this.onProfileUpdate.cancel();
|
||||
if (this.monitoredUser) {
|
||||
this.monitoredUser.removeListener(UserEvent.DisplayName, this.onProfileUpdate);
|
||||
this.monitoredUser.removeListener(UserEvent.AvatarUrl, this.onProfileUpdate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue