Skip to content

Commit

Permalink
Update ozoneBidAdapter_spec.js
Browse files Browse the repository at this point in the history
cleaned up spec file / removed invalid test
  • Loading branch information
AskRupert-DM committed Jun 11, 2024
1 parent 8f4f901 commit c4da4af
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/spec/modules/ozoneBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2866,7 +2866,7 @@ describe('ozone Adapter', function () {
});
});
describe('addVideoDefaults', function() {
it('should correctly add video defaults', function () {
it('should not add video defaults if there is no videoParams config', function () {
let mediaTypes = {
playerSize: [640, 480],
mimes: ['video/mp4'],
Expand All @@ -2883,12 +2883,14 @@ describe('ozone Adapter', function () {
testKey: 'child value'
};
let result = spec.addVideoDefaults({}, mediaTypes, mediaTypes);
expect(result.placement).to.equal(3);
expect(result.placement).to.be.undefined;
expect(result.skip).to.equal(0);
result = spec.addVideoDefaults({}, mediaTypes, bid_params_video);
expect(result.skip).to.equal(1);
});
it('should correctly add video defaults including skippable in parent', function () {
it('should correctly add video defaults if page config videoParams is defined, also check skip in the parent', function () {
var specMock = utils.deepClone(spec);
specMock.propertyBag.whitelabel.videoParams = {outstream: 3, instream: 1};
let mediaTypes = {
playerSize: [640, 480],
mimes: ['video/mp4'],
Expand All @@ -2904,7 +2906,7 @@ describe('ozone Adapter', function () {
skipafter: 5,
testKey: 'child value'
};
let result = spec.addVideoDefaults({}, mediaTypes, bid_params_video);
let result = specMock.addVideoDefaults({}, mediaTypes, bid_params_video);
expect(result.placement).to.equal(3);
expect(result.skip).to.equal(1);
});
Expand Down

0 comments on commit c4da4af

Please sign in to comment.