@@ -13,6 +13,7 @@ import { useGlobalStore } from '../../services/stores';
13
13
import { ComponentNames } from '../types' ;
14
14
15
15
import { BaseComponent } from '.' ;
16
+ import { LIMITS_MOCK } from '../../../__mocks__/limits.mock' ;
16
17
17
18
class DummyComponent extends BaseComponent {
18
19
protected logger : Logger ;
@@ -70,6 +71,7 @@ describe('BaseComponent', () => {
70
71
config : MOCK_CONFIG ,
71
72
eventBus : EVENT_BUS_MOCK ,
72
73
Presence3DManagerService : Presence3DManager ,
74
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
73
75
useStore,
74
76
} ) ;
75
77
@@ -90,6 +92,7 @@ describe('BaseComponent', () => {
90
92
ioc : new IOC ( MOCK_LOCAL_PARTICIPANT ) ,
91
93
config : MOCK_CONFIG ,
92
94
eventBus : EVENT_BUS_MOCK ,
95
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
93
96
useStore,
94
97
} ) ;
95
98
@@ -109,6 +112,7 @@ describe('BaseComponent', () => {
109
112
ioc : new IOC ( MOCK_LOCAL_PARTICIPANT ) ,
110
113
config : MOCK_CONFIG ,
111
114
eventBus : EVENT_BUS_MOCK ,
115
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
112
116
useStore,
113
117
} ) ;
114
118
@@ -126,8 +130,9 @@ describe('BaseComponent', () => {
126
130
config : null as unknown as Configuration ,
127
131
eventBus : null as unknown as EventBus ,
128
132
useStore : null as unknown as typeof useStore ,
133
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
129
134
} ) ;
130
- } ) . toThrowError ( ) ;
135
+ } ) . toThrow ( ) ;
131
136
} ) ;
132
137
} ) ;
133
138
@@ -141,6 +146,7 @@ describe('BaseComponent', () => {
141
146
ioc : new IOC ( MOCK_LOCAL_PARTICIPANT ) ,
142
147
config : MOCK_CONFIG ,
143
148
eventBus : EVENT_BUS_MOCK ,
149
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
144
150
useStore,
145
151
} ) ;
146
152
@@ -162,6 +168,7 @@ describe('BaseComponent', () => {
162
168
ioc : new IOC ( MOCK_LOCAL_PARTICIPANT ) ,
163
169
config : MOCK_CONFIG ,
164
170
eventBus : EVENT_BUS_MOCK ,
171
+ connectionLimit : LIMITS_MOCK . videoConference . maxParticipants ,
165
172
useStore,
166
173
} ) ;
167
174
0 commit comments