Skip to content

Commit

Permalink
added test for new product id
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bauzon-gumgum committed May 31, 2022
1 parent 7ba0426 commit 941429e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/spec/modules/gumgumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ describe('gumgumAdapter', function () {
const bidRequest = spec.buildRequests([request])[0];
expect(bidRequest.data.pi).to.equal(3);
});
it('should set the correct pi param if product param is found and is equal to skin', function () {
const request = { ...bidRequests[0], params: { ...zoneParam, product: 'Skin' } };
const bidRequest = spec.buildRequests([request])[0];
expect(bidRequest.data.pi).to.equal(8);
});
it('should default the pi param to 2 if only zone or pubId param is found', function () {
const zoneRequest = { ...bidRequests[0], params: zoneParam };
const pubIdRequest = { ...bidRequests[0], params: pubIdParam };
Expand Down

0 comments on commit 941429e

Please sign in to comment.