Skip to content

Commit

Permalink
Reflect comments on other PR
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-yuxuan committed Oct 25, 2018
1 parent 8b0fb8d commit 50b8e37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/adikteevBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export const spec = {
const payload = {
validBidRequests,
bidderRequest,
url: utils.getTopWindowUrl(),
referrer: utils.getTopWindowReferrer(),
referrerInfo: bidderRequest.refererInfo,
userAgent: navigator.userAgent,
screen: {
width: window.screen.width,
height: window.screen.height
},
language: navigator.language,
cookies: document.cookie.split(';'),
prebidUpdateVersion: '1.29.0',
};
const payloadString = JSON.stringify(payload);
return {
Expand Down
6 changes: 2 additions & 4 deletions test/spec/modules/adikteevBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,21 +117,19 @@ describe('adikteevBidAdapter', () => {
expect(requestData).to.exist.and.have.all.keys(
'validBidRequests',
'bidderRequest',
'url',
'referrer',
'userAgent',
'screen',
'language',
'cookies',
'prebidUpdateVersion',
);
expect(requestData.validBidRequests).to.deep.equal(validBidRequests);
expect(requestData.bidderRequest).to.deep.equal(bidderRequest);
expect(requestData.url).to.deep.equal(utils.getTopWindowUrl());
expect(requestData.referrer).to.deep.equal(utils.getTopWindowReferrer());
expect(requestData.userAgent).to.deep.equal(navigator.userAgent);
expect(requestData.screen.width).to.deep.equal(window.screen.width);
expect(requestData.screen.height).to.deep.equal(window.screen.height);
expect(requestData.language).to.deep.equal(navigator.language);
expect(requestData.prebidUpdateVersion).to.deep.equal('1.29.0');
});

describe('staging environment', () => {
Expand Down

0 comments on commit 50b8e37

Please sign in to comment.