From 74d933c3f272dfdfca507b8969705c71b8b008ac Mon Sep 17 00:00:00 2001 From: Jason Snellbaker Date: Fri, 22 Jun 2018 16:45:21 -0400 Subject: [PATCH 1/2] adding logInfo message to note the module was activated --- modules/consentManagement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consentManagement.js b/modules/consentManagement.js index 5f040c63051..0618a3f752c 100644 --- a/modules/consentManagement.js +++ b/modules/consentManagement.js @@ -348,7 +348,7 @@ export function setConfig(config) { allowAuction = DEFAULT_ALLOW_AUCTION_WO_CONSENT; utils.logInfo(`consentManagement config did not specify allowAuctionWithoutConsent. Using system default setting (${DEFAULT_ALLOW_AUCTION_WO_CONSENT}).`); } - + utils.logInfo('consentManagement module has been activated...'); $$PREBID_GLOBAL$$.requestBids.addHook(requestBidsHook, 50); } config.getConfig('consentManagement', config => setConfig(config.consentManagement)); From ccdb70632b7055ee457ad5d82d29a0d3bb7a0bf5 Mon Sep 17 00:00:00 2001 From: Jason Snellbaker Date: Mon, 25 Jun 2018 08:26:28 -0400 Subject: [PATCH 2/2] update unit test --- test/spec/modules/consentManagement_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/spec/modules/consentManagement_spec.js b/test/spec/modules/consentManagement_spec.js index 46ab6c46777..fe6bfc1ebfd 100644 --- a/test/spec/modules/consentManagement_spec.js +++ b/test/spec/modules/consentManagement_spec.js @@ -23,7 +23,7 @@ describe('consentManagement', function () { expect(userCMP).to.be.equal('iab'); expect(consentTimeout).to.be.equal(10000); expect(allowAuction).to.be.true; - sinon.assert.callCount(utils.logInfo, 3); + sinon.assert.callCount(utils.logInfo, 4); }); });