Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update adUnit, bidRequest and bidResponse object #4180

Merged
merged 2 commits into from
Sep 24, 2019

Conversation

Fawke
Copy link
Contributor

@Fawke Fawke commented Sep 10, 2019

Type of change

  • Refactoring (no functional changes, no api changes)

Description of change

This PR updates the AdUnit, BidRequest & BidResponse objects in the fixtures.js file to add mediaType property and remove the deprecated sizes property. Also, some irrelevant properties from few of these objects have also been removed.

If I did miss updating some objects, please let me know so I can look into it and make the required change.


let appnexusBidRequests = find(bidRequests, bidRequest => bidRequest.bidderCode === 'appnexus');
expect(appnexusBidRequests.bids.length).to.equal(2);
expect(appnexusBidRequests.bids[0].sizes).to.deep.equal(find(adUnits, adUnit => adUnit.code === appnexusBidRequests.bids[0].adUnitCode).sizes);
expect(appnexusBidRequests.bids[1].sizes).to.deep.equal(find(adUnits, adUnit => adUnit.code === appnexusBidRequests.bids[1].adUnitCode).sizes);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fawke
Should these expects be updated to check the mediaTypes.sizes or whatever the expected is?

instead of just removing them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @robertrmartinez for pointing this out! I've added a few assertions to check for the mediaType object. Let me know what you think.

@jaiminpanchal27 jaiminpanchal27 removed their assignment Sep 24, 2019
@jaiminpanchal27 jaiminpanchal27 added LGTM needs 2nd review Core module updates require two approvals from the core team and removed needs review labels Sep 24, 2019
@robertrmartinez robertrmartinez merged commit 2ab711b into master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM needs 2nd review Core module updates require two approvals from the core team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants