Avoid using deprecated exports & methods from matrix-js-sdk (#12359)
This commit is contained in:
parent
11912a0da0
commit
4941327c78
24 changed files with 73 additions and 80 deletions
|
@ -933,12 +933,7 @@ describe("<PowerLevelEditor />", () => {
|
|||
// firing the event will raise a dialog warning about self demotion, wait for this to appear then click on it
|
||||
await userEvent.click(await screen.findByText("Demote", { exact: true }));
|
||||
expect(mockClient.setPowerLevel).toHaveBeenCalledTimes(1);
|
||||
expect(mockClient.setPowerLevel).toHaveBeenCalledWith(
|
||||
mockRoom.roomId,
|
||||
defaultMember.userId,
|
||||
changedPowerLevel,
|
||||
powerLevelEvent,
|
||||
);
|
||||
expect(mockClient.setPowerLevel).toHaveBeenCalledWith(mockRoom.roomId, defaultMember.userId, changedPowerLevel);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue