@@ -87,6 +87,7 @@ describe('VideoReplayer - no starting gap', () => {
87
87
onFinished : jest . fn ( ) ,
88
88
onLoaded : jest . fn ( ) ,
89
89
onBuffer : jest . fn ( ) ,
90
+ duration : 40 ,
90
91
} ) ;
91
92
// @ts -expect-error private
92
93
expect ( inst . _currentIndex ) . toEqual ( 0 ) ;
@@ -112,6 +113,7 @@ describe('VideoReplayer - no starting gap', () => {
112
113
onFinished : jest . fn ( ) ,
113
114
onLoaded : jest . fn ( ) ,
114
115
onBuffer : jest . fn ( ) ,
116
+ duration : 40 ,
115
117
} ) ;
116
118
const playPromise = inst . play ( 18100 ) ;
117
119
// @ts -expect-error private
@@ -140,6 +142,7 @@ describe('VideoReplayer - no starting gap', () => {
140
142
onFinished : jest . fn ( ) ,
141
143
onLoaded : jest . fn ( ) ,
142
144
onBuffer : jest . fn ( ) ,
145
+ duration : 40 ,
143
146
} ) ;
144
147
const playPromise = inst . play ( 50000 ) ;
145
148
// 15000 -> 20000 is a gap, so player should start playing @ index 3, from
@@ -162,6 +165,7 @@ describe('VideoReplayer - no starting gap', () => {
162
165
onFinished : jest . fn ( ) ,
163
166
onLoaded : jest . fn ( ) ,
164
167
onBuffer : jest . fn ( ) ,
168
+ duration : 40 ,
165
169
} ) ;
166
170
const playPromise = inst . play ( 0 ) ;
167
171
jest . advanceTimersByTime ( 2500 ) ;
@@ -181,6 +185,7 @@ describe('VideoReplayer - no starting gap', () => {
181
185
onFinished : jest . fn ( ) ,
182
186
onLoaded : jest . fn ( ) ,
183
187
onBuffer : jest . fn ( ) ,
188
+ duration : 50 ,
184
189
} ) ;
185
190
// play at segment 7
186
191
const playPromise = inst . play ( 45_003 ) ;
@@ -215,6 +220,7 @@ describe('VideoReplayer - no starting gap', () => {
215
220
onFinished : jest . fn ( ) ,
216
221
onLoaded : jest . fn ( ) ,
217
222
onBuffer : jest . fn ( ) ,
223
+ duration : 60 ,
218
224
} ) ;
219
225
// play at segment 7
220
226
const playPromise = inst . play ( 45_003 ) ;
@@ -288,6 +294,7 @@ describe('VideoReplayer - with starting gap', () => {
288
294
onFinished : jest . fn ( ) ,
289
295
onLoaded : jest . fn ( ) ,
290
296
onBuffer : jest . fn ( ) ,
297
+ duration : 40 ,
291
298
} ) ;
292
299
// @ts -expect-error private
293
300
expect ( inst . _currentIndex ) . toEqual ( 0 ) ;
@@ -311,6 +318,7 @@ describe('VideoReplayer - with starting gap', () => {
311
318
onFinished : jest . fn ( ) ,
312
319
onLoaded : jest . fn ( ) ,
313
320
onBuffer : jest . fn ( ) ,
321
+ duration : 40 ,
314
322
} ) ;
315
323
const playPromise = inst . play ( 18100 ) ;
316
324
// @ts -expect-error private
@@ -339,6 +347,7 @@ describe('VideoReplayer - with starting gap', () => {
339
347
onFinished : jest . fn ( ) ,
340
348
onLoaded : jest . fn ( ) ,
341
349
onBuffer : jest . fn ( ) ,
350
+ duration : 40 ,
342
351
} ) ;
343
352
const playPromise = inst . play ( 50000 ) ;
344
353
// 15000 -> 20000 is a gap, so player should start playing @ index 3, from
0 commit comments