Skip to content

Commit

Permalink
fix(plugin-meetings): fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fnowakow committed Oct 16, 2024
1 parent bacd02b commit 8d1dbf5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/@webex/plugin-meetings/test/unit/spec/meeting/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,10 @@ describe('plugin-meetings', () => {
locusUrl: 'locusUrl',
meetingRequest: {
joinMeeting: sinon.stub().returns(
Promise.resolve(joinMeetingResponse))
Promise.resolve(joinMeetingResponse)),
},
getWebexObject: sinon.stub().returns(webex),
locusInfo: {
initialSetup: sinon.stub(),
},
setLocus: sinon.stub(),
};
});

Expand All @@ -423,9 +421,9 @@ describe('plugin-meetings', () => {
assert.equal(parameter.reachability, 'reachability');
assert.equal(parameter.roapMessage, 'roapMessage');

assert.calledOnce(meeting.locusInfo.initialSetup)
const initialSetupParameter = meeting.locusInfo.initialSetup.getCall(0).args[0];
assert.deepEqual(initialSetupParameter, joinMeetingResponse.body.locus)
assert.calledOnce(meeting.setLocus)
const setLocusParameter = meeting.setLocus.getCall(0).args[0];
assert.deepEqual(setLocusParameter, MeetingUtil.parseLocusJoin(joinMeetingResponse))

assert.calledWith(webex.internal.newMetrics.submitClientEvent, {
name: 'client.locus.join.request',
Expand Down

0 comments on commit 8d1dbf5

Please sign in to comment.