Avoid using deprecated exports & methods from matrix-js-sdk (#12359)
This commit is contained in:
@@ -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