@@ -66,6 +66,11 @@ const BIDDER_REQUEST_1 = {
66
66
'http://example.com/iframe1.html' ,
67
67
'http://example.com/iframe2.html'
68
68
]
69
+ } ,
70
+ ortb2 : {
71
+ device : {
72
+ language : 'en'
73
+ }
69
74
}
70
75
} ;
71
76
@@ -130,6 +135,11 @@ const BIDDER_REQUEST_2 = {
130
135
'http://example.com/iframe1.html' ,
131
136
'http://example.com/iframe2.html'
132
137
]
138
+ } ,
139
+ ortb2 : {
140
+ device : {
141
+ language : 'en'
142
+ }
133
143
}
134
144
} ;
135
145
@@ -177,6 +187,11 @@ const BIDDER_REQUEST_VIDEO = {
177
187
'http://example.com/iframe1.html' ,
178
188
'http://example.com/iframe2.html'
179
189
]
190
+ } ,
191
+ ortb2 : {
192
+ device : {
193
+ language : 'en'
194
+ }
180
195
}
181
196
} ;
182
197
@@ -188,6 +203,11 @@ const BIDDER_REQUEST_EMPTY = {
188
203
gdprConsent : {
189
204
consentString : 'consent-test' ,
190
205
gdprApplies : false
206
+ } ,
207
+ ortb2 : {
208
+ device : {
209
+ language : 'en'
210
+ }
191
211
}
192
212
} ;
193
213
@@ -519,6 +539,12 @@ describe('Consumable BidAdapter', function () {
519
539
expect ( data1 . placements [ 0 ] . bidfloor ) . to . equal ( 0.05 ) ;
520
540
expect ( data2 . placements [ 0 ] . bidfloor ) . to . equal ( 0.15 ) ;
521
541
} ) ;
542
+ it ( 'should contain the language param' , function ( ) {
543
+ let request = spec . buildRequests ( BIDDER_REQUEST_1 . bidRequest , BIDDER_REQUEST_1 ) ;
544
+ let data = JSON . parse ( request . data ) ;
545
+
546
+ expect ( data . lang ) . to . equal ( 'en' ) ;
547
+ } ) ;
522
548
} ) ;
523
549
describe ( 'interpretResponse validation' , function ( ) {
524
550
it ( 'response should have valid bidderCode' , function ( ) {
0 commit comments