Skip to content

Commit

Permalink
fixed spacing issues in code
Browse files Browse the repository at this point in the history
  • Loading branch information
jxdeveloper1 committed Sep 15, 2023
1 parent f91704a commit 7574d30
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions modules/jixieBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const JX_OUTSTREAM_RENDERER_URL = 'https://scripts.jixie.media/jxhbrenderer.1.1.
const REQUESTS_URL = 'https://hb.jixie.io/v2/hbpost';
const sidTTLMins_ = 30;


/**
* Get bid floor from Price Floors Module
*
Expand All @@ -35,7 +34,7 @@ function getBidFloor(bid) {
}
return null;
}

/**
* Own miscellaneous support functions:
*/
Expand Down
26 changes: 13 additions & 13 deletions test/spec/modules/jixieBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,19 @@ describe('jixie Adapter', function () {
});

it('it should populate the floor info when available', function () {
let oneSpecialBidReq = deepClone(bidRequests_[0]);
let request, payload = null;
// 1 floor is not set
request = spec.buildRequests([oneSpecialBidReq], bidderRequest_);
payload = JSON.parse(request.data);
expect(payload.bids[0].bidFloor).to.not.exist;
// 2 floor is set
let getFloorResponse = { currency: 'USD', floor: 2.1 };
oneSpecialBidReq.getFloor = () => getFloorResponse;
request = spec.buildRequests([oneSpecialBidReq], bidderRequest_);
payload = JSON.parse(request.data);
expect(payload.bids[0].bidFloor).to.exist.and.to.equal(2.1);
let oneSpecialBidReq = deepClone(bidRequests_[0]);
let request, payload = null;
// 1 floor is not set
request = spec.buildRequests([oneSpecialBidReq], bidderRequest_);
payload = JSON.parse(request.data);
expect(payload.bids[0].bidFloor).to.not.exist;

// 2 floor is set
let getFloorResponse = { currency: 'USD', floor: 2.1 };
oneSpecialBidReq.getFloor = () => getFloorResponse;
request = spec.buildRequests([oneSpecialBidReq], bidderRequest_);
payload = JSON.parse(request.data);
expect(payload.bids[0].bidFloor).to.exist.and.to.equal(2.1);
});

it('should populate eids when supported userIds are available', function () {
Expand Down

0 comments on commit 7574d30

Please sign in to comment.