Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 26, 2024
1 parent 691932a commit de0b2ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/hms-video-store/src/sdk/LocalTrackManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const publishParams = hostRole.publishParams;
let localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
});
testStore.addPeer(localPeer);

Expand Down Expand Up @@ -231,6 +232,7 @@ describe('LocalTrackManager', () => {
localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
});
testStore.addPeer(localPeer);
});
Expand Down Expand Up @@ -408,6 +410,7 @@ describe('LocalTrackManager', () => {
localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
});
testStore.addPeer(localPeer);
mockGetUserMedia.mockClear();
Expand Down
4 changes: 4 additions & 0 deletions packages/hms-video-store/src/sdk/models/peer/peer.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HMSLocalPeer } from './HMSLocalPeer';
import { HMSRemotePeer } from './HMSRemotePeer';
import { HMSPeerType } from '../../../internal';
import { PeerNotification } from '../../../notification-manager';
import decodeJWT from '../../../utils/jwt';

Expand Down Expand Up @@ -45,6 +46,7 @@ describe('HMSLocalPeer', () => {
name: 'John Doe',
role: getParamsForRole(role),
customerUserId: userId,
type: 'regular' as HMSPeerType,
};
const peer = new HMSLocalPeer(params);

Expand Down Expand Up @@ -80,6 +82,7 @@ describe('HMSRemotPeer', () => {
name: 'John Doe',
data: 'data',
user_id: 'customer_user_id',
type: 'regular',
},
role: 'viewer',
tracks: {},
Expand All @@ -91,6 +94,7 @@ describe('HMSRemotPeer', () => {
role: getParamsForRole(peerInfo.role),
customerUserId: peerInfo.info.user_id,
metadata: peerInfo.info.data,
type: 'regular',
});

it('should be constructed using params', () => {
Expand Down

0 comments on commit de0b2ad

Please sign in to comment.