You've already forked matrix-react-sdk
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:
committed by
GitHub
parent
213b32bf14
commit
7fa01ffb06
@ -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,
|
||||
]);
|
||||
|
Reference in New Issue
Block a user