From de0b2ad3e68df06eb1cd9122c4e917584e9ff87b Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Tue, 26 Mar 2024 11:23:17 +0530 Subject: [PATCH] test: fix failing tests --- packages/hms-video-store/src/sdk/LocalTrackManager.test.ts | 3 +++ packages/hms-video-store/src/sdk/models/peer/peer.test.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/packages/hms-video-store/src/sdk/LocalTrackManager.test.ts b/packages/hms-video-store/src/sdk/LocalTrackManager.test.ts index 5da120f4cf..c7088c3c90 100644 --- a/packages/hms-video-store/src/sdk/LocalTrackManager.test.ts +++ b/packages/hms-video-store/src/sdk/LocalTrackManager.test.ts @@ -96,6 +96,7 @@ const publishParams = hostRole.publishParams; let localPeer = new HMSLocalPeer({ name: 'test', role: hostRole, + type: 'regular', }); testStore.addPeer(localPeer); @@ -231,6 +232,7 @@ describe('LocalTrackManager', () => { localPeer = new HMSLocalPeer({ name: 'test', role: hostRole, + type: 'regular', }); testStore.addPeer(localPeer); }); @@ -408,6 +410,7 @@ describe('LocalTrackManager', () => { localPeer = new HMSLocalPeer({ name: 'test', role: hostRole, + type: 'regular', }); testStore.addPeer(localPeer); mockGetUserMedia.mockClear(); diff --git a/packages/hms-video-store/src/sdk/models/peer/peer.test.ts b/packages/hms-video-store/src/sdk/models/peer/peer.test.ts index c459790c5a..b463bf03ff 100644 --- a/packages/hms-video-store/src/sdk/models/peer/peer.test.ts +++ b/packages/hms-video-store/src/sdk/models/peer/peer.test.ts @@ -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'; @@ -45,6 +46,7 @@ describe('HMSLocalPeer', () => { name: 'John Doe', role: getParamsForRole(role), customerUserId: userId, + type: 'regular' as HMSPeerType, }; const peer = new HMSLocalPeer(params); @@ -80,6 +82,7 @@ describe('HMSRemotPeer', () => { name: 'John Doe', data: 'data', user_id: 'customer_user_id', + type: 'regular', }, role: 'viewer', tracks: {}, @@ -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', () => {