Skip to content

Commit

Permalink
fix(MeetingsSdkAdapter): use meetingsSDKAdapter variable in tests file
Browse files Browse the repository at this point in the history
  • Loading branch information
karinasigartau0798 authored and cipak committed Jul 30, 2021
1 parent e74e681 commit c53bfeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/MeetingsSDKAdapter.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ describe('Meetings SDK Adapter', () => {

describe('proceedWithoutMicrophoneControl()', () => {
test('returns the display data of a meeting control in a proper shape', (done) => {
meetingSDKAdapter.proceedWithoutMicrophoneControl(meetingID)
meetingsSDKAdapter.proceedWithoutMicrophoneControl(meetingID)
.pipe(first()).subscribe((dataDisplay) => {
expect(dataDisplay).toMatchObject({
ID: 'proceed-without-microphone',
Expand All @@ -1066,7 +1066,7 @@ describe('Meetings SDK Adapter', () => {
});

test('throws errors if sdk meeting object is not defined', (done) => {
meetingSDKAdapter.proceedWithoutMicrophoneControl('inexistent').subscribe(
meetingsSDKAdapter.proceedWithoutMicrophoneControl('inexistent').subscribe(
() => {},
(error) => {
expect(error.message).toBe('Could not find meeting with ID "inexistent" to add proceed without microphone control');
Expand All @@ -1078,11 +1078,11 @@ describe('Meetings SDK Adapter', () => {

describe('ignoreAudioAccessPrompt()', () => {
test('calls ignoreAudioAccessPrompt() on the meeting object if defined', () => {
meetingSDKAdapter.meetings[meetingID].localAudio.ignoreMediaAccessPrompt = jest.fn();
meetingsSDKAdapter.meetings[meetingID].localAudio.ignoreMediaAccessPrompt = jest.fn();

meetingSDKAdapter.ignoreAudioAccessPrompt(meetingID);
meetingsSDKAdapter.ignoreAudioAccessPrompt(meetingID);

expect(meetingSDKAdapter.meetings[meetingID].localAudio.ignoreMediaAccessPrompt)
expect(meetingsSDKAdapter.meetings[meetingID].localAudio.ignoreMediaAccessPrompt)
.toHaveBeenCalled();
});
});
Expand Down

0 comments on commit c53bfeb

Please sign in to comment.