Skip to content

Commit f8f7ba2

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

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
@@ -35,7 +35,7 @@ describe('StatsAggregator', () => {
3535
describe('onSessionStarted', () => {
3636
it('should start gathering stats and set baseline when the matching session starts', () => {
3737
const mockSession = new MockSession() as unknown as IExtendedMediaSession;
38-
(mockSession as any).privAnswerMode = 'Auto';
38+
(mockSession as unknown).privAnswerMode = 'Auto';
3939
const sdk = new SimpleMockSdk() as unknown as GenesysCloudWebrtSdk;
4040
const statsAggregator = new StatsAggregator(mockSession, sdk);
4141

@@ -362,7 +362,7 @@ describe('StatsAggregator', () => {
362362
it('should not call sendIq if there is no participant', () => {
363363
const mockSession = new MockSession() as unknown as IExtendedMediaSession;
364364
const sdk = new SimpleMockSdk() as unknown as GenesysCloudWebrtSdk;
365-
const sendIqMock = (sdk as any)._streamingConnection._webrtcSessions.sendIq;
365+
const sendIqMock = (sdk as unknown)._streamingConnection._webrtcSessions.sendIq;
366366
const statsAggregator = new StatsAggregator(mockSession, sdk);
367367
const rtpStats = {
368368
packetsReceived: 5,
@@ -425,7 +425,7 @@ describe('StatsAggregator', () => {
425425
averageJitter: 0.1,
426426
estimatedAverageMos: 5
427427
};
428-
mockSession.pcParticipant = { calls: [{ id: 'testCall' }] } as any;
428+
mockSession.pcParticipant = { calls: [{ id: 'testCall' }] } as unknown;
429429

430430
expect(() => {
431431
statsAggregator['sendStats'](rtpStats, new Date());

0 commit comments

Comments
 (0)