@@ -110,7 +110,8 @@ describe('gumgumAdapter', function () {
110
110
segtax : 500 ,
111
111
cids : [ 'iris_c73g5jq96mwso4d8' ]
112
112
}
113
- } ]
113
+ } ] ,
114
+ url : 'http://pub.com/news' ,
114
115
} ,
115
116
page : 'http://pub.com/news' ,
116
117
ref : 'http://google.com' ,
@@ -286,7 +287,11 @@ describe('gumgumAdapter', function () {
286
287
const bidRequest = spec . buildRequests ( [ request ] , bidderRequest ) [ 0 ] ;
287
288
expect ( bidRequest . data ) . to . have . property ( 'irisid' , 'iris_c73g5jq96mwso4d8' ) ;
288
289
} ) ;
289
-
290
+ it ( 'should set the curl param if present' , function ( ) {
291
+ const request = { ...bidRequests [ 0 ] } ;
292
+ const bidRequest = spec . buildRequests ( [ request ] , bidderRequest ) [ 0 ] ;
293
+ expect ( bidRequest . data ) . to . have . property ( 'curl' , 'http://pub.com/news' ) ;
294
+ } ) ;
290
295
it ( 'should not set the iriscat param when not found' , function ( ) {
291
296
const request = { ...bidRequests [ 0 ] }
292
297
const bidRequest = spec . buildRequests ( [ request ] ) [ 0 ] ;
@@ -517,7 +522,12 @@ describe('gumgumAdapter', function () {
517
522
startdelay : 1 ,
518
523
placement : 123456 ,
519
524
plcmt : 3 ,
520
- protocols : [ 1 , 2 ]
525
+ protocols : [ 1 , 2 ] ,
526
+ skip : 1 ,
527
+ api : [ 1 , 2 ] ,
528
+ mimes : [ 'video/mp4' , 'video/webm' ] ,
529
+ playbackmethod : [ 1 , 2 ] ,
530
+ playbackend : 2
521
531
} ;
522
532
const request = Object . assign ( { } , bidRequests [ 0 ] ) ;
523
533
delete request . params ;
@@ -539,6 +549,11 @@ describe('gumgumAdapter', function () {
539
549
expect ( bidRequest . data . pr ) . to . eq ( videoVals . protocols . join ( ',' ) ) ;
540
550
expect ( bidRequest . data . viw ) . to . eq ( videoVals . playerSize [ 0 ] . toString ( ) ) ;
541
551
expect ( bidRequest . data . vih ) . to . eq ( videoVals . playerSize [ 1 ] . toString ( ) ) ;
552
+ expect ( bidRequest . data . skip ) . to . eq ( videoVals . skip ) ;
553
+ expect ( bidRequest . data . api ) . to . eq ( videoVals . api . join ( ',' ) ) ;
554
+ expect ( bidRequest . data . mimes ) . to . eq ( videoVals . mimes . join ( ',' ) ) ;
555
+ expect ( bidRequest . data . pbm ) . to . eq ( videoVals . playbackmethod . join ( ',' ) ) ;
556
+ expect ( bidRequest . data . pbe ) . to . eq ( videoVals . playbackend ) ;
542
557
} ) ;
543
558
it ( 'should add parameters associated with invideo if invideo request param is found' , function ( ) {
544
559
const inVideoVals = {
@@ -550,7 +565,12 @@ describe('gumgumAdapter', function () {
550
565
startdelay : 1 ,
551
566
placement : 123456 ,
552
567
plcmt : 3 ,
553
- protocols : [ 1 , 2 ]
568
+ protocols : [ 1 , 2 ] ,
569
+ skip : 1 ,
570
+ api : [ 1 , 2 ] ,
571
+ mimes : [ 'video/mp4' , 'video/webm' ] ,
572
+ playbackmethod : [ 6 ] ,
573
+ playbackend : 1
554
574
} ;
555
575
const request = Object . assign ( { } , bidRequests [ 0 ] ) ;
556
576
delete request . params ;
@@ -572,6 +592,11 @@ describe('gumgumAdapter', function () {
572
592
expect ( bidRequest . data . pr ) . to . eq ( inVideoVals . protocols . join ( ',' ) ) ;
573
593
expect ( bidRequest . data . viw ) . to . eq ( inVideoVals . playerSize [ 0 ] . toString ( ) ) ;
574
594
expect ( bidRequest . data . vih ) . to . eq ( inVideoVals . playerSize [ 1 ] . toString ( ) ) ;
595
+ expect ( bidRequest . data . skip ) . to . eq ( inVideoVals . skip ) ;
596
+ expect ( bidRequest . data . api ) . to . eq ( inVideoVals . api . join ( ',' ) ) ;
597
+ expect ( bidRequest . data . mimes ) . to . eq ( inVideoVals . mimes . join ( ',' ) ) ;
598
+ expect ( bidRequest . data . pbm ) . to . eq ( inVideoVals . playbackmethod . join ( ',' ) ) ;
599
+ expect ( bidRequest . data . pbe ) . to . eq ( inVideoVals . playbackend ) ;
575
600
} ) ;
576
601
it ( 'should not add additional parameters depending on params field' , function ( ) {
577
602
const request = spec . buildRequests ( bidRequests ) [ 0 ] ;
0 commit comments