Improve typing around event emitter handlers (#7816)
This commit is contained in:
parent
213b32bf14
commit
7fa01ffb06
79 changed files with 548 additions and 471 deletions
|
@ -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,
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue