You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Avoid using deprecated exports & methods from matrix-js-sdk (#12359)
This commit is contained in:
committed by
GitHub
parent
11912a0da0
commit
4941327c78
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user