From 0719466d4f2781726c360a05d6dd3798f3632da9 Mon Sep 17 00:00:00 2001 From: mekya Date: Tue, 10 Dec 2024 12:55:14 +0300 Subject: [PATCH] Fix test case --- src/test/js/webrtc_adaptor.test.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/js/webrtc_adaptor.test.js b/src/test/js/webrtc_adaptor.test.js index 5a319f1c..9a589562 100644 --- a/src/test/js/webrtc_adaptor.test.js +++ b/src/test/js/webrtc_adaptor.test.js @@ -884,7 +884,7 @@ describe("WebRTCAdaptor", function() { sendExpectation.verify() }) - it("joinRoom", async function() { + it.only("joinRoom", async function() { let adaptor = new WebRTCAdaptor({ websocketURL: "ws://example.com", @@ -897,15 +897,20 @@ describe("WebRTCAdaptor", function() { let jsCmd = { command: "joinRoom", room: roomId, + mainTrack: roomId, streamId: streamId, mode: "multitrack", + streamName: "streamName", + role: "role", + metadata: "metadata", + } let webSocketAdaptor = sinon.mock(adaptor.webSocketAdaptor); let sendExpectation = webSocketAdaptor.expects("send").once().withArgs(JSON.stringify(jsCmd)); - adaptor.joinRoom(roomId, streamId, "multitrack"); + adaptor.joinRoom(roomId, streamId, "multitrack", "streamName", "role", "metadata"); sendExpectation.verify()