Skip to content

Commit

Permalink
Change expected nodes greater than 2 to less than or equal to 2 (#12670)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianozurita authored Jan 17, 2025
1 parent 57e1767 commit 32689b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion modules/eplanningBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const spec = {
if (pcrs) {
params.crs = pcrs;
}
if (schain && schain.nodes.length > 2) {
if (schain && schain.nodes.length <= 2) {
params.sch = serializeSupplyChain(schain, ['asi', 'sid', 'hp', 'rid', 'name', 'domain']);
}
if (referrerUrl) {
Expand Down
32 changes: 16 additions & 16 deletions test/spec/modules/eplanningBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,6 @@ describe('E-Planning Adapter', function () {
hp: 1,
name: 'publisher',
domain: 'publisher.com'
},
{
asi: 'reseller.com',
sid: 'aaaaa',
rid: 'BidRequest2',
hp: 1,
name: 'publisher2',
domain: 'publisher2.com'
},
{
asi: 'reseller3.com',
sid: 'aaaaab',
rid: 'BidRequest3',
hp: 1,
name: 'publisher3',
domain: 'publisher3.com'
}
]
}
Expand All @@ -111,6 +95,22 @@ describe('E-Planning Adapter', function () {
hp: 1,
name: 'publisher',
domain: 'publisher.com'
},
{
asi: 'reseller.com',
sid: 'aaaaa',
rid: 'BidRequest2',
hp: 1,
name: 'publisher2',
domain: 'publisher2.com'
},
{
asi: 'reseller3.com',
sid: 'aaaaab',
rid: 'BidRequest3',
hp: 1,
name: 'publisher3',
domain: 'publisher3.com'
}
]
}
Expand Down

0 comments on commit 32689b4

Please sign in to comment.