@@ -19,6 +19,11 @@ describe('PulsePoint Adapter Tests', function () {
19
19
}
20
20
} , {
21
21
placementCode : '/DfpAccount2/slot2' ,
22
+ mediaTypes : {
23
+ banner : {
24
+ sizes : [ [ 728 , 90 ] ]
25
+ }
26
+ } ,
22
27
bidId : 'bid23456' ,
23
28
params : {
24
29
cp : 'p10000' ,
@@ -72,6 +77,11 @@ describe('PulsePoint Adapter Tests', function () {
72
77
} ] ;
73
78
const additionalParamsConfig = [ {
74
79
placementCode : '/DfpAccount1/slot1' ,
80
+ mediaTypes : {
81
+ banner : {
82
+ sizes : [ [ 1 , 1 ] ]
83
+ }
84
+ } ,
75
85
bidId : 'bid12345' ,
76
86
params : {
77
87
cp : 'p10000' ,
@@ -89,6 +99,11 @@ describe('PulsePoint Adapter Tests', function () {
89
99
90
100
const ortbParamsSlotConfig = [ {
91
101
placementCode : '/DfpAccount1/slot1' ,
102
+ mediaTypes : {
103
+ banner : {
104
+ sizes : [ [ 1 , 1 ] ]
105
+ }
106
+ } ,
92
107
bidId : 'bid12345' ,
93
108
params : {
94
109
cp : 'p10000' ,
@@ -146,6 +161,11 @@ describe('PulsePoint Adapter Tests', function () {
146
161
147
162
const schainParamsSlotConfig = [ {
148
163
placementCode : '/DfpAccount1/slot1' ,
164
+ mediaTypes : {
165
+ banner : {
166
+ sizes : [ [ 1 , 1 ] ]
167
+ }
168
+ } ,
149
169
bidId : 'bid12345' ,
150
170
params : {
151
171
cp : 'p10000' ,
@@ -681,7 +701,10 @@ describe('PulsePoint Adapter Tests', function () {
681
701
expect ( ortbRequest . imp [ 1 ] . banner ) . to . not . be . null ;
682
702
expect ( ortbRequest . imp [ 1 ] . banner . w ) . to . equal ( 728 ) ;
683
703
expect ( ortbRequest . imp [ 1 ] . banner . h ) . to . equal ( 90 ) ;
684
- expect ( ortbRequest . imp [ 1 ] . banner . format ) . to . be . null ;
704
+ expect ( ortbRequest . imp [ 1 ] . banner . format ) . to . not . be . null ;
705
+ expect ( ortbRequest . imp [ 1 ] . banner . format ) . to . have . lengthOf ( 1 ) ;
706
+ expect ( ortbRequest . imp [ 1 ] . banner . format [ 0 ] . w ) . to . equal ( 728 ) ;
707
+ expect ( ortbRequest . imp [ 1 ] . banner . format [ 0 ] . h ) . to . equal ( 90 ) ;
685
708
// adsize on response
686
709
const ortbResponse = {
687
710
seatbid : [ {
0 commit comments