Skip to content

Commit

Permalink
Revert "Bugfix: Issue 3111 (prebid#3122)"
Browse files Browse the repository at this point in the history
This reverts commit 100e3e1.
  • Loading branch information
Darijusch committed Sep 27, 2018
1 parent 6fbc521 commit c4efaaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 1 addition & 3 deletions modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,7 @@ export const spec = {
var dctr = '';
var dctrLen;
var dctrArr = [];
var bid;
validBidRequests.forEach(originalBid => {
bid = utils.deepClone(originalBid);
validBidRequests.forEach(bid => {
_parseAdSlot(bid);
if (bid.params.hasOwnProperty('video')) {
if (!(bid.params.adSlot && bid.params.adUnit && bid.params.adUnitIndex)) {
Expand Down
8 changes: 1 addition & 7 deletions test/spec/modules/pubmaticBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,7 @@ describe('PubMatic adapter', function () {
});

describe('Request formation', function () {
it('buildRequests function should not modify original bidRequests object', function () {
let originalBidRequests = utils.deepClone(bidRequests);
let request = spec.buildRequests(bidRequests);
expect(bidRequests).to.deep.equal(originalBidRequests);
});

it('Endpoint checking', function () {
it('Endpoint checking', function () {
let request = spec.buildRequests(bidRequests);
expect(request.url).to.equal('//hbopenbid.pubmatic.com/translator?source=prebid-client');
expect(request.method).to.equal('POST');
Expand Down

0 comments on commit c4efaaa

Please sign in to comment.