@@ -223,17 +223,33 @@ describe('BeachfrontAdapter', function () {
223
223
expect ( data . imp [ 0 ] . video ) . to . deep . contain ( { w : width , h : height } ) ;
224
224
} ) ;
225
225
226
- it ( 'must override video targeting params' , function ( ) {
226
+ it ( 'must set video params from the standard object ' , function ( ) {
227
227
const bidRequest = bidRequests [ 0 ] ;
228
228
const mimes = [ 'video/webm' ] ;
229
229
const playbackmethod = 2 ;
230
230
const maxduration = 30 ;
231
231
const placement = 4 ;
232
- bidRequest . mediaTypes = { video : { } } ;
233
- bidRequest . params . video = { mimes, playbackmethod, maxduration, placement } ;
232
+ const skip = 1 ;
233
+ bidRequest . mediaTypes = {
234
+ video : { mimes, playbackmethod, maxduration, placement, skip }
235
+ } ;
236
+ const requests = spec . buildRequests ( [ bidRequest ] ) ;
237
+ const data = requests [ 0 ] . data ;
238
+ expect ( data . imp [ 0 ] . video ) . to . deep . contain ( { mimes, playbackmethod, maxduration, placement, skip } ) ;
239
+ } ) ;
240
+
241
+ it ( 'must override video params from the bidder object' , function ( ) {
242
+ const bidRequest = bidRequests [ 0 ] ;
243
+ const mimes = [ 'video/webm' ] ;
244
+ const playbackmethod = 2 ;
245
+ const maxduration = 30 ;
246
+ const placement = 4 ;
247
+ const skip = 1 ;
248
+ bidRequest . mediaTypes = { video : { placement : 3 , skip : 0 } } ;
249
+ bidRequest . params . video = { mimes, playbackmethod, maxduration, placement, skip } ;
234
250
const requests = spec . buildRequests ( [ bidRequest ] ) ;
235
251
const data = requests [ 0 ] . data ;
236
- expect ( data . imp [ 0 ] . video ) . to . deep . contain ( { mimes, playbackmethod, maxduration, placement } ) ;
252
+ expect ( data . imp [ 0 ] . video ) . to . deep . contain ( { mimes, playbackmethod, maxduration, placement, skip } ) ;
237
253
} ) ;
238
254
239
255
it ( 'must add US privacy data to the request' , function ( ) {
0 commit comments