1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Improve typing around event emitter handlers (#7816)

This commit is contained in:
Michael Telatynski
2022-02-22 12:18:08 +00:00
committed by GitHub
parent 213b32bf14
commit 7fa01ffb06
79 changed files with 548 additions and 471 deletions

View File

@ -103,18 +103,22 @@ describe('Permalinks', function() {
});
it('should change candidate server when highest power level user leaves the room', function() {
const roomId = "!fake:example.org";
const member95 = {
userId: "@alice:pl_95",
powerLevel: 95,
roomId,
};
const room = mockRoom("!fake:example.org", [
const room = mockRoom(roomId, [
{
userId: "@alice:pl_50",
powerLevel: 50,
roomId,
},
{
userId: "@alice:pl_75",
powerLevel: 75,
roomId,
},
member95,
]);