rtc: use new API in tests (instead of deprecated calls) (#31649)
This commit is contained in:
@@ -443,12 +443,16 @@ describe("Notifier", () => {
|
|||||||
content: {},
|
content: {},
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
call_id: "123",
|
kind: "session",
|
||||||
application: "m.call",
|
data: {
|
||||||
focus_active: { type: "livekit" },
|
call_id: "123",
|
||||||
foci_preferred: [],
|
application: "m.call",
|
||||||
device_id: "DEVICE",
|
focus_active: { type: "livekit", focus_selection: "oldest_membership" },
|
||||||
|
foci_preferred: [],
|
||||||
|
device_id: "DEVICE",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
"hashed_id_XXXAAAAA",
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1051,7 +1051,7 @@ describe("ElementCall", () => {
|
|||||||
setRoomMembers(["@user:example.com", "@user2:example.com", "@user4:example.com"]);
|
setRoomMembers(["@user:example.com", "@user2:example.com", "@user4:example.com"]);
|
||||||
});
|
});
|
||||||
it("don't sent notify event if there are existing room call members", async () => {
|
it("don't sent notify event if there are existing room call members", async () => {
|
||||||
jest.spyOn(MatrixRTCSession, "callMembershipsForRoom").mockReturnValue([
|
jest.spyOn(MatrixRTCSession, "sessionMembershipsForSlot").mockResolvedValue([
|
||||||
{ application: "m.call", callId: "" } as unknown as CallMembership,
|
{ application: "m.call", callId: "" } as unknown as CallMembership,
|
||||||
]);
|
]);
|
||||||
const sendEventSpy = jest.spyOn(room.client, "sendEvent");
|
const sendEventSpy = jest.spyOn(room.client, "sendEvent");
|
||||||
|
|||||||
Reference in New Issue
Block a user