File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,14 @@ describe('helpers/appHelper', () => {
187187 expect ( sources . currentServer ) . toBe ( '1' ) ;
188188 } ) ;
189189
190+ test ( 'buildSources fills blank season and episode for series without params' , ( ) => {
191+ const sources = helper . buildSources ( 'tt-series' , 'series' ) ;
192+ expect ( sources . server1Src ) . toBe ( 'https://domain/embed/tv?imdb=tt-series&season=&episode=' ) ;
193+ expect ( sources . server2Src ) . toBe ( '' ) ;
194+ expect ( sources . currentServer ) . toBe ( '1' ) ;
195+ expect ( sources . iframeSrc ) . toBe ( 'https://domain/embed/tv?imdb=tt-series&season=&episode=' ) ;
196+ } ) ;
197+
190198 test ( 'buildSources prefers MULTI_DOMAIN sources when configured' , ( ) => {
191199 jest . isolateModules ( ( ) => {
192200 mockAppConfig . MULTI_DOMAIN = 'multi.example' ;
You can’t perform that action at this time.
0 commit comments