Skip to content

Commit a4fcd66

Browse files
[STREAM-151] Codacy any -> unknown
Co-authored-by: codacy-production[bot] <61871480+codacy-production[bot]@users.noreply.github.com>
1 parent f8f7ba2 commit a4fcd66

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/unit/stats-aggregator.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('StatsAggregator', () => {
5050

5151
it('should not start gathering stats for a different session', () => {
5252
const mockSession = new MockSession() as unknown as IExtendedMediaSession;
53-
(mockSession as any).privAnswerMode = 'Auto';
53+
(mockSession as unknown).privAnswerMode = 'Auto';
5454
const sdk = new SimpleMockSdk() as unknown as GenesysCloudWebrtSdk;
5555
const statsAggregator = new StatsAggregator(mockSession, sdk);
5656

@@ -378,7 +378,7 @@ describe('StatsAggregator', () => {
378378
it('should not call sendIq if there are no calls for the participant', () => {
379379
const mockSession = new MockSession() as unknown as IExtendedMediaSession;
380380
const sdk = new SimpleMockSdk() as unknown as GenesysCloudWebrtSdk;
381-
const sendIqMock = (sdk as any)._streamingConnection._webrtcSessions.sendIq;
381+
const sendIqMock = (sdk as unknown)._streamingConnection._webrtcSessions.sendIq;
382382
const statsAggregator = new StatsAggregator(mockSession, sdk);
383383
const rtpStats = {
384384
packetsReceived: 5,
@@ -442,7 +442,7 @@ describe('StatsAggregator', () => {
442442
averageJitter: 0.1,
443443
estimatedAverageMos: 5
444444
};
445-
mockSession.pcParticipant = { calls: [{ id: 'testCall' }] } as any;
445+
mockSession.pcParticipant = { calls: [{ id: 'testCall' }] } as unknown;
446446

447447
statsAggregator['sendStats'](rtpStats, new Date());
448448

0 commit comments

Comments
 (0)