diff --git a/test/spec/modules/prebidServerBidAdapter_spec.js b/test/spec/modules/prebidServerBidAdapter_spec.js index 9ef895e3e1e..11bc9524cb1 100644 --- a/test/spec/modules/prebidServerBidAdapter_spec.js +++ b/test/spec/modules/prebidServerBidAdapter_spec.js @@ -124,7 +124,16 @@ const OUTSTREAM_VIDEO_REQUEST = { 'video': { playerSize: [[640, 480]], context: 'outstream', - mimes: ['video/mp4'] + mimes: ['video/mp4'], + renderer: { + url: 'https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js', + render: function (bid) { + ANOutstreamVideo.renderAd({ + targetId: bid.adUnitCode, + adResponse: bid.adResponse, + }); + } + } }, banner: { sizes: [[300, 250]] } }, @@ -143,7 +152,8 @@ const OUTSTREAM_VIDEO_REQUEST = { video: { playerSize: [640, 480], context: 'outstream', - mimes: ['video/mp4'] + mimes: ['video/mp4'], + skip: 1 } }, bids: [ @@ -157,16 +167,7 @@ const OUTSTREAM_VIDEO_REQUEST = { } } } - ], - renderer: { - url: 'http://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js', - render: function (bid) { - ANOutstreamVideo.renderAd({ - targetId: bid.adUnitCode, - adResponse: bid.adResponse, - }); - } - } + ] } ], }; @@ -560,14 +561,14 @@ describe('S2S Adapter', function () { expect(server.requests.length).to.equal(0); }); - it('should not add outstrean without renderer', function () { + it('should add outstream bc renderer exists on mediatype', function () { config.setConfig({ s2sConfig: CONFIG }); adapter.callBids(OUTSTREAM_VIDEO_REQUEST, BID_REQUESTS, addBidResponse, done, ajax); const requestBid = JSON.parse(server.requests[0].requestBody); expect(requestBid.imp[0].banner).to.exist; - expect(requestBid.imp[0].video).to.not.exist; + expect(requestBid.imp[0].video).to.exist; }); it('should default video placement if not defined and instream', function () {