From 941429e4b37a5c0d2aa181512b92acae06dcfe3b Mon Sep 17 00:00:00 2001 From: John Bauzon Date: Tue, 31 May 2022 23:06:07 +0800 Subject: [PATCH] added test for new product id --- test/spec/modules/gumgumBidAdapter_spec.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/spec/modules/gumgumBidAdapter_spec.js b/test/spec/modules/gumgumBidAdapter_spec.js index ebbc1c230f1..3f52e9aea1c 100644 --- a/test/spec/modules/gumgumBidAdapter_spec.js +++ b/test/spec/modules/gumgumBidAdapter_spec.js @@ -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 };