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 27, 2024
1 parent fb024eb commit 4c03b45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions packages/hms-video-store/src/sdk/LocalTrackManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AnalyticsTimer } from '../analytics/AnalyticsTimer';
import { DeviceManager } from '../device-manager';
import { HMSException } from '../error/HMSException';
import { EventBus } from '../events/EventBus';
import { HMSLocalVideoTrack, HMSTrackType } from '../internal';
import { HMSLocalVideoTrack, HMSPeerType, HMSTrackType } from '../internal';
import { HMSLocalStream } from '../media/streams/HMSLocalStream';
import { HMSTrack } from '../media/tracks';
import { PolicyParams } from '../notification-manager';
Expand Down Expand Up @@ -96,7 +96,7 @@ const publishParams = hostRole.publishParams;
let localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
type: HMSPeerType.REGULAR,
});
testStore.addPeer(localPeer);

Expand Down Expand Up @@ -232,7 +232,7 @@ describe('LocalTrackManager', () => {
localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
type: HMSPeerType.REGULAR,
});
testStore.addPeer(localPeer);
});
Expand Down Expand Up @@ -410,7 +410,7 @@ describe('LocalTrackManager', () => {
localPeer = new HMSLocalPeer({
name: 'test',
role: hostRole,
type: 'regular',
type: HMSPeerType.REGULAR,
});
testStore.addPeer(localPeer);
mockGetUserMedia.mockClear();
Expand All @@ -424,7 +424,7 @@ describe('LocalTrackManager', () => {
kind: 'video',
getSettings: () => ({ deviceId: 'video-device-id', groupId: 'video-group-id' }),
} as MediaStreamTrack,
'regular',
HMSPeerType.REGULAR,
testEventBus,
);
localPeer.videoTrack = mockVideoTrack;
Expand Down Expand Up @@ -456,7 +456,7 @@ describe('LocalTrackManager', () => {
kind: 'video',
getSettings: () => ({ deviceId: 'video-device-id', groupId: 'video-group-id' }),
} as MediaStreamTrack,
'regular',
HMSPeerType.REGULAR,
testEventBus,
);

Expand Down
6 changes: 3 additions & 3 deletions packages/hms-video-store/src/sdk/models/peer/peer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('HMSLocalPeer', () => {
name: 'John Doe',
role: getParamsForRole(role),
customerUserId: userId,
type: 'regular' as HMSPeerType,
type: HMSPeerType.REGULAR as HMSPeerType,
};
const peer = new HMSLocalPeer(params);

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

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

0 comments on commit 4c03b45

Please sign in to comment.