Skip to content

Commit

Permalink
fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RRSchweitzer committed Jan 4, 2021
1 parent 768cf19 commit 2ad241e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/prebidServerBidAdapter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ const OPEN_RTB_PROTOCOL = {
bidObject.meta = bidObject.meta || {};
if (bid.adomain) { bidObject.meta.advertiserDomains = bid.adomain; }

// TODO: Remove when prebid-server returns ttl and netRevenue
// the OpenRTB location for "TTL" as understood by Prebid.js is "exp" (expiration).
const configTtl = s2sConfig.defaultTtl || DEFAULT_S2S_TTL;
bidObject.ttl = (bid.exp) ? bid.exp : configTtl;
bidObject.netRevenue = (bid.netRevenue) ? bid.netRevenue : DEFAULT_S2S_NETREVENUE;
Expand Down
1 change: 0 additions & 1 deletion src/adapterManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ adapterManager.makeBidRequests = hook('sync', function (adUnits, auctionStart, a
bidRequest['uspConsent'] = uspDataHandler.getConsentData();
});
}

return bidRequests;
}, 'makeBidRequests');

Expand Down
10 changes: 5 additions & 5 deletions test/spec/unit/core/adapterManager_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ describe('adapterManager tests', function () {
'start': 1462918897460
},
{
'bidderCode': 'rubicon',
'bidderCode': 'pubmatic',
'auctionId': '1863e370099523',
'bidderRequestId': '2946b569352ef2',
'tid': '2342342342lfi23',
Expand All @@ -788,7 +788,7 @@ describe('adapterManager tests', function () {
],
'bids': [
{
'bidder': 'rubicon',
'bidder': 'pubmatic',
'params': {
'placementId': '543221',
'test': 'me'
Expand Down Expand Up @@ -827,7 +827,7 @@ describe('adapterManager tests', function () {
],
'bids': [
{
'bidder': 'rubicon',
'bidder': 'pubmatic',
'params': {
'placementId': '5324321'
},
Expand All @@ -853,7 +853,7 @@ describe('adapterManager tests', function () {
],
'bids': [
{
'bidder': 'rubicon',
'bidder': 'pubmatic',
'params': {
'placementId': '4799418',
'test': 'me'
Expand All @@ -877,7 +877,7 @@ describe('adapterManager tests', function () {
'transactionId': '4r42r23r23'
},
{
'bidder': 'rubicon',
'bidder': 'pubmatic',
'params': {
'placementId': '4799418'
},
Expand Down

0 comments on commit 2ad241e

Please sign in to comment.