You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Avoid using deprecated exports & methods from matrix-js-sdk (#12359)
This commit is contained in:
committed by
GitHub
parent
11912a0da0
commit
4941327c78
@ -70,7 +70,7 @@ describe("createRoom", () => {
|
||||
// widget should be immutable for admins
|
||||
expect(widgetPower).toBeGreaterThan(100);
|
||||
// and we should have been reset back to admin
|
||||
expect(client.setPowerLevel).toHaveBeenCalledWith(roomId, userId, 100, null);
|
||||
expect(client.setPowerLevel).toHaveBeenCalledWith(roomId, userId, 100);
|
||||
});
|
||||
|
||||
it("sets up Element video rooms correctly", async () => {
|
||||
@ -99,7 +99,7 @@ describe("createRoom", () => {
|
||||
// call should be immutable for admins
|
||||
expect(callPower).toBeGreaterThan(100);
|
||||
// and we should have been reset back to admin
|
||||
expect(client.setPowerLevel).toHaveBeenCalledWith(roomId, userId, 100, null);
|
||||
expect(client.setPowerLevel).toHaveBeenCalledWith(roomId, userId, 100);
|
||||
});
|
||||
|
||||
it("doesn't create calls in non-video-rooms", async () => {
|
||||
|
Reference in New Issue
Block a user