From 1d6873619867a38dac15fdaa96de79892b9a0923 Mon Sep 17 00:00:00 2001 From: acsbendi Date: Fri, 24 May 2024 11:07:54 +0200 Subject: [PATCH] Fixed tests. --- test/spec/modules/koblerBidAdapter_spec.js | 24 ++-------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/test/spec/modules/koblerBidAdapter_spec.js b/test/spec/modules/koblerBidAdapter_spec.js index ba8e1020679..74c0a1f5967 100644 --- a/test/spec/modules/koblerBidAdapter_spec.js +++ b/test/spec/modules/koblerBidAdapter_spec.js @@ -13,7 +13,8 @@ function createBidderRequest(auctionId, timeout, pageUrl, addGdprConsent) { purpose: { consents: { 1: false, - 2: true + 2: true, + 3: false } }, publisher: { @@ -311,27 +312,6 @@ describe('KoblerAdapter', function () { expect(openRtbRequest.test).to.be.equal(1); }); - it('should read pageUrl from config when testing', function () { - config.setConfig({ - pageUrl: 'https://testing-url.com' - }); - const validBidRequests = [ - createValidBidRequest( - { - test: true - } - ) - ]; - const bidderRequest = createBidderRequest(); - - const result = spec.buildRequests(validBidRequests, bidderRequest); - expect(result.url).to.be.equal('https://bid-service.dev.essrtb.com/bid/prebid_rtb_call'); - - const openRtbRequest = JSON.parse(result.data); - expect(openRtbRequest.site.page).to.be.equal('https://testing-url.com'); - expect(openRtbRequest.test).to.be.equal(1); - }); - it('should not read pageUrl from config when not testing', function () { config.setConfig({ pageUrl: 'https://testing-url.com'