Skip to content

Commit

Permalink
Update common_spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored Nov 18, 2024
1 parent 3a5587b commit 93094f4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/spec/ortbConverter/common_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@ describe('common processors', () => {
const impFpd = DEFAULT_PROCESSORS[IMP].secure.fn;

it('should set secure as 1 if publisher did not set it', () => {
const imp = {secure: 1};
const bidRequest = {adUnitCode: 'ad-code-1', ortb2Imp: {}};
impFpd(imp, bidRequest);
const imp = {};
impFpd(imp);
expect(imp.secure).to.eql(1);
});

it('should not overwrite secure if set by publisher', () => {
const imp = {secure: 1};
const bidRequest = {adUnitCode: 'ad-code-1', ortb2Imp: {secure: 0}};
impFpd(imp, bidRequest);
const imp = {secure: 0};
impFpd(imp);
expect(imp.secure).to.eql(0);
});
})
Expand Down

0 comments on commit 93094f4

Please sign in to comment.