Skip to content

Commit

Permalink
test(media-helpers): use setUserMuted instead of setMuted
Browse files Browse the repository at this point in the history
  • Loading branch information
mkesavan13 committed Apr 17, 2024
1 parent 6fc86d9 commit d26010f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@webex/media-helpers/test/unit/spec/webrtc-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ describe('media-helpers', () => {
await stream.setUserMuted(false);
});

it('rejects setMute(false) if unmute is not allowed', async () => {
it('rejects setUserMuted(false) if unmute is not allowed', async () => {
stream.setUnmuteAllowed(false);

assert.equal(stream.isUnmuteAllowed(), false);
const fn = () => stream.setUserMuted(false);
expect(fn).to.throw(/Unmute is not allowed/);
});

it('resolves setMute(false) if unmute is allowed', async () => {
it('resolves setUserMuted(false) if unmute is allowed', async () => {
stream.setUnmuteAllowed(true);

assert.equal(stream.isUnmuteAllowed(), true);
Expand All @@ -83,7 +83,7 @@ describe('media-helpers', () => {
});

const checkSetServerMuted = (startMute, setMute, expectedCalled) => {
stream.setMuted(startMute);
stream.setUserMuted(startMute);

assert.equal(stream.userMuted, startMute);

Expand Down

0 comments on commit d26010f

Please sign in to comment.