Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mekya committed Dec 10, 2024
1 parent e4e8a85 commit 0719466
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/test/js/webrtc_adaptor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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()

Expand Down

0 comments on commit 0719466

Please sign in to comment.