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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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,
]);