Skip to content

Commit

Permalink
Updating isBidRequestValid logic to account for aliasing of bidder na…
Browse files Browse the repository at this point in the history
…mes (prebid#12136)
  • Loading branch information
jefftmahoney authored Aug 19, 2024
1 parent c452306 commit d374348
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion modules/sharethroughBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const sharethroughAdapterSpec = {
code: BIDDER_CODE,
supportedMediaTypes: [VIDEO, BANNER],
gvlid: 80,
isBidRequestValid: (bid) => !!bid.params.pkey && bid.bidder === BIDDER_CODE,
isBidRequestValid: (bid) => !!bid.params.pkey,

buildRequests: (bidRequests, bidderRequest) => {
const timeout = bidderRequest.timeout;
Expand Down
11 changes: 0 additions & 11 deletions test/spec/modules/sharethroughBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,8 @@ describe('sharethrough adapter spec', function () {
expect(spec.isBidRequestValid(invalidBidRequest)).to.eql(false);
});

it('should return false if req has wrong bidder code', function () {
const invalidBidRequest = {
bidder: 'notSharethrough',
params: {
pkey: 'abc123',
},
};
expect(spec.isBidRequestValid(invalidBidRequest)).to.eql(false);
});

it('should return true if req is correct', function () {
const validBidRequest = {
bidder: 'sharethrough',
params: {
pkey: 'abc123',
},
Expand Down

0 comments on commit d374348

Please sign in to comment.