Skip to content

Commit

Permalink
Merge pull request #67 from opentok/microphone-picker
Browse files Browse the repository at this point in the history
 OPENTOK-37632 - Adding microphone picker
  • Loading branch information
Adam Ullman authored Jul 26, 2018
2 parents 2f7372c + 582f93a commit 4422b41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/microphonePickerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ describe('microphonePicker', () => {
mockPublisher.getAudioSource = () => ({
label: 'Device2',
});
mockPublisher.setAudioSource = jasmine.createSpy('setAudioSource').and.callFake(() => Promise.resolve());
mockPublisher.setAudioSource = jasmine.createSpy('setAudioSource').and.callFake(() => ({
then: (callback) => { setTimeout(callback); },
}));
mockPublisher.id = 'mockPublisher';
}));

Expand Down

0 comments on commit 4422b41

Please sign in to comment.