Skip to content

Commit

Permalink
change extract method.
Browse files Browse the repository at this point in the history
  • Loading branch information
saar120 committed Sep 27, 2023
1 parent 9d786f6 commit 1f0efe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions modules/illuminBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ export function createDomain(subDomain = DEFAULT_SUB_DOMAIN) {
}

export function extractCID(params) {
return params.cId || params.CID || params.cID || params.CId || params.cid || params.ciD || params.Cid || params.CiD;
return params.cId;
}

export function extractPID(params) {
return params.pId || params.PID || params.pID || params.PId || params.pid || params.piD || params.Pid || params.PiD;
return params.pId;
}

export function extractSubDomain(params) {
return params.subDomain || params.SubDomain || params.Subdomain || params.subdomain || params.SUBDOMAIN || params.subDOMAIN;
return params.subDomain;
}

function isBidRequestValid(bid) {
Expand Down
3 changes: 0 additions & 3 deletions test/spec/modules/illuminBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,6 @@ describe('IlluminBidAdapter', function () {
});

it('should return value when param supported', function () {
const cid = extractCID({'cID': '1'});
const pid = extractPID({'Pid': '2'});
const subDomain = extractSubDomain({'subDOMAIN': 'prebid'});
expect(cid).to.be.equal('1');
expect(pid).to.be.equal('2');
expect(subDomain).to.be.equal('prebid');
Expand Down

0 comments on commit 1f0efe2

Please sign in to comment.